This blog will help you to understand how to add files to your git repository:
Step 1: Move the files into local directory which you want to upload to Github that was created when you cloned the repository.
Step 2: Open and change the current working directory to your local repository.
Step 3: Stage the file for the first commit to your repository.
$ git add filename
filename is the name that you want to add to the the git repository.
Step 4: Commit the files that you have staged into local repository
$ git commit -m "Your first commit statement"
Step 5: Now push the changes to Github from local repository.
$ git push origin master
All done!
Thanks for reading the blog
0 Comment(s)