Git 如何保持 Git Fork 持续更新

rocLv · July 21, 2017 · 6392 hits

原文:Keeping A GitHub Fork Updated

摘要:

$ git clone [email protected]:croaky/dotfiles.git
$ cd  dotfiles

$ git remote add upstream [email protected]:thoughtbot/dotfiles.git 


$ git fetch upstream
$ git rebase upstream/master

//假如对upstream有commit的权限的话

$ git checkout -b upstream upstream/master
No Reply at the moment.
You need to Sign in before reply, if you don't have an account, please Sign up first.