Skip to content

Instantly share code, notes, and snippets.

@erebus1
Created November 6, 2018 16:29
Show Gist options
  • Save erebus1/ffd34110eea456b86d35d16dbf11c033 to your computer and use it in GitHub Desktop.
Save erebus1/ffd34110eea456b86d35d16dbf11c033 to your computer and use it in GitHub Desktop.
Set up test repo
mkdir test
cd test
git init
mkdir a
touch a/a.txt
touch b.txt
printf "hello\ne" >> a/a.txt
printf "test\ntrololo" >> b.txt
git add ./
git commit -m "init" -a
git checkout -b test
rm a/a.txt
printf "heee\ne" >> a/a.txt
rm b.txt
printf "trololo\ne" >> b.txt
git commit -m "change" -a
git checkout master
mkdir monolith
git mv a monolith/
git mv b.txt monolith/
git add ./
git commit -m "mv in monoloth" -a
rm monolith/a/a.txt
printf "hyyy\ne" >> monolith/a/a.txt
rm monolith/b.txt
printf "troeee\ne" >> monolith/b.txt
git commit -m "change" -a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment