Reputation: 211
I have a repository in my Github, and I cloned it on my desktop. Then I did some work in the folder. How do I commit those changes to my repository?
Upvotes: 2
Views: 4666
Reputation: 12677
below code is right, but don't forget to add remote address to key "origin".
git remote add origin <YOUR_REPOSITORY_PATH>
git add .
git commit -m 'some change'
git push -u origin master
-u – sets repo branch as defaults, so then you can push, just git push
Upvotes: 1
Reputation: 2025
May
git add .
git commit -m "my changes"
git push origin master
Upvotes: 1