Created
November 21, 2017 07:37
-
-
Save kumarharsh/e1948c6971f1c68577792ff914a00af7 to your computer and use it in GitHub Desktop.
Reproduce bug in Git Log using this script (git-for-windows)
This file contains hidden or 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
#!/usr/bin/env bash | |
set -x | |
rm -rf test-repo | |
rm -rf test-submodule | |
mkdir test-submodule | |
pushd test-submodule | |
git init | |
git config --local user.name tester1 | |
git config --local user.email [email protected] | |
echo "a single line" > file.txt | |
git add file.txt | |
git commit -m "first commit" | |
popd | |
mkdir test-repo | |
pushd test-repo | |
git init | |
git config --local user.name tester1 | |
git config --local user.email [email protected] | |
git branch -m master | |
echo "first line" > somefile.txt | |
git add somefile.txt | |
git commit -m "First line" | |
echo "another line" >> somefile.txt | |
git add somefile.txt | |
git commit -a -m "Second line" | |
echo "A line" > "[__Odd__].txt" | |
git add "[__Odd__].txt" | |
git commit -m "Adding odd file" | |
echo "third line" >> somefile.txt | |
git commit -a -m "Another bold statement." | |
echo "2nd line" >> "[__Odd__].txt" | |
echo "more" >> somefile.txt | |
git add "[__Odd__].txt" somefile.txt | |
git commit -m "changed both in master1" | |
git checkout -b new_branch | |
echo "2nd line" >> "[__Odd__].txt" | |
echo "more" >> somefile.txt | |
git add "[__Odd__].txt" somefile.txt | |
git commit -m "changed both in new_branch" | |
git checkout master | |
echo "2nd line" >> "[__Odd__].txt" | |
echo "more" >> somefile.txt | |
git add "[__Odd__].txt" somefile.txt | |
git commit -m "changed both in master" | |
git submodule add -- ../test-submodule module | |
git commit -m "Added submodule" | |
git log -- "[__Odd__].txt" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment