本地更新如何提交至GitHub

for first use

1
2
3
4
5
6
7
git init   ***init .git***  
git status ***check files to be added to the local repository***
git add xxx ***add files to repo***
git commit -m "commit description" ***commit to repo***
git remote add origin git@github.com:mobinets/hyblora.git ***link local repo to github***
git pull --rebase origin master ***pull = fetch + merge***
git push -u origin master ***upload***

not first use repo

1
2
3
git add xxx  
git commit -m "commit discription"
git push -u origin master