Skip to content

Instantly share code, notes, and snippets.

@Shengliang
Created February 22, 2017 19:50
Show Gist options
  • Save Shengliang/0b1b7bfb392f04ed3ab6fc27702b18ba to your computer and use it in GitHub Desktop.
Save Shengliang/0b1b7bfb392f04ed3ab6fc27702b18ba to your computer and use it in GitHub Desktop.
git clone https://github.com/Shengliang/rails.git
cd rails
git remote -v
git remote add upstream https://github.com/rails/rails.git
git remote -v
git fetch upstream
export EDITOR=vim
git rebase -i upstream/master
git push origin master:master
git branch -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment