My favorite:
cd ..
cp work-repo/code.py /tmp/
rm -rf work-repo && git clone github.com/.../work-repo.git
cp /tmp/code.py work-repo/
cd work-repo && git checkout my_branch && git add -u && git commit
I got to see all the respect my DevOps colleague ever had for me leave his body with one deep sigh when he saw me do this on a screenshare last month.
My favorite:
cd ..cp work-repo/code.py /tmp/rm -rf work-repo && git clone github.com/.../work-repo.gitcp /tmp/code.py work-repo/cd work-repo && git checkout my_branch && git add -u && git commitI got to see all the respect my DevOps colleague ever had for me leave his body with one deep sigh when he saw me do this on a screenshare last month.