-2

I want to upload a folder which contains files to a github using git bash so that my github displays a folder and when I click on it files are displayed. I want to know the steps since I'm a beginner with this.

Fatimah Ali
  • 41
  • 1
  • 8
  • Does this answer your question? [Git for beginners: The definitive practical guide](https://stackoverflow.com/questions/315911/git-for-beginners-the-definitive-practical-guide) – phd Dec 02 '19 at 21:09
  • https://stackoverflow.com/search?q=%5Bgit%5D+for+beginner – phd Dec 02 '19 at 21:09

1 Answers1

0

Create a new GitHub Repository and follow the steps shown(I will write it down here, too)

  • Open the folder in git bash

  • create a local repository by executing git init

  • add the content of the directory: git add .

  • commit that to the local repository: git commit -m "your yommit message"

  • add the GitHub repository as a remote: git remote add origin <link to the repository>

  • Push(upload) your local changes to GitHub: git push -u origin master

dan1st
  • 12,568
  • 8
  • 34
  • 67