首先clone自己,從git獲取自己倉庫的內(nèi)容浪慌。
git clone https://github.com/xxx.git
添加遠(yuǎn)程倉庫
添加遠(yuǎn)程倉庫的別名,獲取遠(yuǎn)程倉庫的內(nèi)容并合并朴则。如果有沖突則需要手動(dòng)解決沖突权纤。
git remote add username https://github.com/xxx.git
git fetch username
git merge username/master
提交改動(dòng),推到遠(yuǎn)程的master分支乌妒。
git commit -m "merge from username-xx"
git push -u origin master
查看本地倉庫
git remote -v
git branch -a