myshellconfig/bin/git-mergedetachedheadtomaster

8 lines
147 B
Text
Raw Normal View History

2021-09-15 13:55:20 +02:00
#!/bin/bash
git checkout -b tmp
git branch -f master tmp
git checkout master
git branch -d tmp
git commit -m "Merged detached head into master" .