Okay, one more... Ever commit something only to immediately realize that you're on the wrong branch? Use "git move <branch>".

coderabbi's tweet image. Okay, one more...
 
Ever commit something only to immediately realize that you&apos;re on the wrong branch?
 
Use &quot;git move &amp;lt;branch&amp;gt;&quot;.

Hmm what about rebase ? git rebase --onto master HEAD $1 that should bring all commits with it not just the last one.


That ends up like this. *Maybe* cleaner (and transfers metadata), but at the expense of a second checkout. Better than cherry-pick, though.

coderabbi's tweet image. That ends up like this. *Maybe* cleaner (and transfers metadata), but at the expense of a second checkout. Better than cherry-pick, though.

United States Trends
Loading...

Something went wrong.


Something went wrong.