A few branches and commits to practice the rebase and branches
- fetch the code!
$ git clone git@github.com:mart-e/git-training.git
$ cd git-training
$ git remote -v
origin git@github.com:mart-e/git-training.git (fetch)
origin git@github.com:mart-e/git-training.git (push)
$ git branch
* master
- fork it on your GitHub account
From the web interface, at https://github.com/mart-e/git-training
- Add your new remote
$ git remote add my_user git@github.com:my_account/git-training.git
$ git branch -r
origin/HEAD -> origin/master
origin/master
origin/rebase-withconflict
origin/simple-rebase
- create a local fork of origin/master (e.g.
my-master
) and push it on your remote - fetch the branch origin/simple-rebase
- rebase simple-rebase onto your master
- fetch the branch origin/rebase-withconflict
- rebase rebase-withconflict onto your master (with simple-rebase already there)
- resolve the conflicts