Created
November 6, 2018 16:29
-
-
Save erebus1/ffd34110eea456b86d35d16dbf11c033 to your computer and use it in GitHub Desktop.
Set up test repo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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