Skip to content

Instantly share code, notes, and snippets.

@ryan-beisner
Created April 2, 2018 21:38
Show Gist options
  • Save ryan-beisner/3f8667103e3637969bec74d51a424818 to your computer and use it in GitHub Desktop.
Save ryan-beisner/3f8667103e3637969bec74d51a424818 to your computer and use it in GitHub Desktop.
Rebase an existing fork on upstream master and create a new feature branch

Rebase an existing fork on upstream master

git clone https://github.com/ryan-beisner/charm-helpers charm-helpers-rb
cd charm-helpers-rb/
git remote add upstream https://github.com/juju/charm-helpers
git fetch upstream
git checkout master
git rebase upstream/master
git log
git push

Make a new branch

git checkout -b fix-ks-wait-test
git push --set-upstream origin fix-ks-wait-test
# (make some changes)
git add .
git commit -m 'Foo'
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment