Skip to content

Instantly share code, notes, and snippets.

@lpnam0201
Created January 12, 2020 04:44
Show Gist options
  • Save lpnam0201/736799ef7ab319613fbbbdabc6ce5dca to your computer and use it in GitHub Desktop.
Save lpnam0201/736799ef7ab319613fbbbdabc6ce5dca to your computer and use it in GitHub Desktop.
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'
echo 'c' > c.txt | git add c.txt | git commit -m 'C'
git branch feature
git checkout master
echo 'd' > d.txt | git add d.txt | git commit -m 'D'
echo 'e' > e.txt | git add e.txt | git commit -m 'E'
git checkout feature
echo 'f' > f.txt | git add f.txt | git commit -m 'F'
echo 'g' > g.txt | git add g.txt | git commit -m 'G'
echo 'h' > h.txt | git add h.txt | git commit -m 'H'
echo 'i' > i.txt | git add i.txt | git commit -m 'I'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment