To use/test the git functions:
- Create a temporary folder to avoid damaging the local copy of the repo's
.gitfolder:
mkdir -p /tmp/testing && cd /tmp/testing- Create an alias to the
mygit.shscript to use it:
alias mygit=~/path/to/repo/mygit.sh- Test out the commands using
mygit:
mygit hash-object -w text.txt