Last active
July 7, 2017 20:53
-
-
Save dfabulich/6e7d006cd83f023cec7978bbeccd3e30 to your computer and use it in GitHub Desktop.
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
#!/bin/sh -x | |
rm -rf sample | |
git init sample | |
cd sample | |
echo hello > testfile | |
git add testfile | |
git commit -m 'added testfile' | |
git branch other | |
echo goodbye > testfile | |
git commit -am 'modified testfile' | |
git checkout other | |
echo changed > testfile | |
git checkout master |
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
#!/bin/sh -x | |
rm -rf sample | |
git init sample | |
cd sample | |
echo hello > testfile | |
git add testfile | |
git commit -m 'added testfile' | |
git branch other | |
echo goodbye > testfile | |
git checkout other | |
cat testfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment