Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- git init foo
- cd foo
- echo -n -e '\x00\x48\x69' > binary.dat
- git add binary.dat
- git commit -m 'initial version - \0Hi'
- git checkout -b foobranch
- echo -n -e '\x00\x48\x65\x79' > binary.dat
- git commit -am 'Change \0Hi to \0Hey on foobranch'
- git checkout master
- echo -n -e '\x00\x48\x65\x6c\x70' > binary.dat
- git commit -am 'Change \0Hi to \0Help on master (most recent)'
- git merge foobranch
- git status
- git diff
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement