put some caveats in
Source Link
ErichBSchulz
  • 13.2k
  • 5
  • 51
  • 50

This willIf you are not sharing your repo with others, this is useful to push all your branches to the remote, and --set-upstream tracking correctly for you:

git push --all -u

(Not exactly what the OP was asking for, but this one-liner is pretty popular)

If you are sharing your repo with others this isn't really good form as you will clog up the repo with all your dodgy experimental branches.

This will push all your branches to the remote, and --set-upstream tracking correctly for you:

git push --all -u

(Not exactly what the OP was asking for, but this one-liner is pretty popular)

If you are not sharing your repo with others, this is useful to push all your branches to the remote, and --set-upstream tracking correctly for you:

git push --all -u

(Not exactly what the OP was asking for, but this one-liner is pretty popular)

If you are sharing your repo with others this isn't really good form as you will clog up the repo with all your dodgy experimental branches.

this got edited to change the meaning of my original post - putting it back to what I meant.
Source Link
ErichBSchulz
  • 13.2k
  • 5
  • 51
  • 50

This will push all your branches to the remote, and do --set-upstream tracking correctly for you:

git push --all -u

(I am not certainNot exactly what the OP was asking for, but here is a simplethis one-liner which both pushes all of your branches to the remote repository and tracks them as well.is pretty popular)

This will push all your branches to the remote, and do --set-upstream tracking correctly for you:

git push --all -u

(I am not certain exactly what the OP was asking for, but here is a simple one-liner which both pushes all of your branches to the remote repository and tracks them as well.)

This will push all your branches to the remote, and --set-upstream tracking correctly for you:

git push --all -u

(Not exactly what the OP was asking for, but this one-liner is pretty popular)

Added crucial formatting, etc.
Source Link
Peter Mortensen
  • 28.7k
  • 21
  • 95
  • 123

This will push all your branches to the remote, and set-upstreamdo --set-upstream tracking correctly for you:

git push --all -u

(I am not certain exactly what the OP was asking for, but here is a simple one-liner which both pushes all of your branches to the remote repository and tracks them as well.)

This will push all your branches to the remote, and set-upstream tracking correctly for you:

git push --all -u

(I am not certain exactly what the OP was asking for, but here is a simple one-liner which both pushes all of your branches to the remote repository and tracks them as well.)

This will push all your branches to the remote, and do --set-upstream tracking correctly for you:

git push --all -u

(I am not certain exactly what the OP was asking for, but here is a simple one-liner which both pushes all of your branches to the remote repository and tracks them as well.)

fixed grammar. Everything from "but . . ." onwards was very ambiguous in English, so I had to hazard a guess as to the meaning of everything after "but".
Source Link
Loading
Source Link
ErichBSchulz
  • 13.2k
  • 5
  • 51
  • 50
Loading