My favourite git command
Updated at0 comment(s)
From time to time, it so happens that I create a feature branch based on the wrong branch (for example,
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 -- .