Comment by yxhuvud
7 years ago
git checkout name-of-the-correct-branch
# grab the last commit to master
git cherry-pick master
# delete it from master
git checkout master
git reset HEAD~ --hard
The two lines in the middle can be
git cherry-pick -
git checkout -
, and voila, it suddenly is name insensitive.
No comments yet
Contribute on Hacker News ↗