Andreas Jilvero


Me

My favourite git command

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 -- .
Andreas Jilvero AB
Västmannagatan 44
113 25 Stockholm
Organisationsnummer: 559237-3004
Telefonnummer: 076 035 90 11