github fork項目後與原項目進行同步


#fork項目後與原項目進行同步
#首先clone自己
git clone https://github.com/xx.git
#添加遠程倉庫
git remote add username-xx https://github.com/xx.git 
git fetch username-xx
git merge username-xx/master
#如果有衝突則需要手動解決衝突,
git commit -m "merge from username-xx"
git push -u origin master
#查看本地倉庫
git remote -v
git branch -a 


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章