Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@irof
Created March 17, 2012 08:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save irof/2056720 to your computer and use it in GitHub Desktop.
Save irof/2056720 to your computer and use it in GitHub Desktop.
Git 初心者用Boot Camp - 演習回答例
git init
echo a>A.txt
git add A.txt
git commit -m'A'
echo b>B.txt
git add B.txt
git commit -m'B'
git checkout -b topicC
echo c>C.txt
git add C.txt
git commit -m'C'
echo d>D.txt
git add D.txt
git commit -m'D'
git checkout master
echo e>E.txt
git add E.txt
git commit -m'E'
git checkout -b topicF master~2
echo f>F.txt
git add F.txt
git commit -m'F'
git checkout master
git merge topicC
git checkout topicF
git rebase master
git checkout master
git reset --hard HEAD~2
git checkout topicF
git rebase topicC
git checkout topicC
git merge topicF
git checkout master
git merge --squash topicF
git commit -m'H'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment