SH | Diensttagebuch

In the middle of the desert you can say anything you want

01 Nov 2021

211101-2311 git push all local branches to remote or to different branch

From FreeCodeCamp:1

  • git branch shows all branches
  • git push --all pushes all local branches to remote.
  • git push origin some-branch:my-feature pushes the local branch some-branch to a remote branch called my-feature

  1. Git Push to Remote Branch – How to Push a Local Branch to Origin ↩︎

Nel mezzo del deserto posso dire tutto quello che voglio.