My favourite git command
Updated at
0 comment(s)From time to time, it so happens that I create a feature branch based on the wrong branch (for example, master
vs develop
).
Whenever I do so, I create a new branch correctly and use this command to get all my changes (although not with history).
C:\dev\app [feature/correct-branch]> git checkout feature/faulty-branch -- .
Comments