$git checkout feature
$git merge master
# always make sure you are up to date before such actions
git fetch
git checkout master
git merge iss53
1 Merge branch 'master' of /Users/oh-kpond/feature
2
3 # Please enter a commit message to explain why this merge is necessary,
4 # especially if it merges an updated upstream into a topic branch.
5 #
6 # Lines starting with '#' will be ignored, and an empty message aborts
7 # the commit.
commit 42b6322d5a3707b1492a859d71462cebbde7706b
Merge: dc18666 101cc36
Author: Kate Pond <kate@thepondsedge.com>
Date: Thu Oct 22 10:52:41 2015 -0400
Merge branch 'master' of /Users/oh-kpond/feature
"git pull" does a "git fetch" and a "git merge"
$git checkout feature
$git rebase master
git checkout feature # remember to always made changes onto yourself
git rebase master
git add <file> # to mark resolution
git rebase --continue
git pull = git fetch + git merge against tracking upstream branch
git pull --rebase = git fetch + git rebase against tracking upstream branch
# Change your commits interactivelly
$ git checkout your-branch
$ git rebase -i master
$ git rebase -i HEAD~4 # allows to squash last 4 commits into one
git rebase -i HEAD~3
# now change the output you get:
pick 5c43c2b [Description for oldest commit]
pick b8f3240 [Description for 2nd oldest commit]
pick c069f4a [Description for most recent commit]
# into:
pick 5c43c2b [Description for oldest commit]
squash b8f3240 [Description for 2nd oldest commit]
squash c069f4a [Description for most recent commit]
# thus creating a single commit with all the same changes
# and even have the ability to make a new message for it
(many thanks to these folks for letting me use photos and text!)
http://pcottle.github.io/learnGitBranching/