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 -- .
Andreas Jilvero AB
Västmannagatan 44
113 25 Stockholm
Organisationsnummer: 559237-3004
Phone number: 076 035 90 11
  • Mail
  • Github
  • LinkedIn