User
User

Reputation: 211

Github - How to update my own repository?

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

Answers (2)

dimpiax
dimpiax

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

Illia Yaremchuk
Illia Yaremchuk

Reputation: 2025

May

git add .
git commit -m "my changes"
git push origin master

Upvotes: 1

Related Questions