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;.

Also this way, any uncommitted changes remain uncommitted after copy.


Yep (though somewhere in the thread, I wrapped the original in a stash & pop, so same result).


Technically I don't think you need to stash in this example either...


United States 트렌드
Loading...

Something went wrong.


Something went wrong.