Removed the useless "Push" image
Source Link
Andreas
  • 20.3k
  • 7
  • 43
  • 53

I want to be able to do the following:

  1. Create a local branch based on some other (remote or local) branch (via git branch or git checkout -b)

  2. Push the local branch to the remote repository (publish), but make it trackable so git pull and git push will work immediately.

enter image description here

How do I do that?

I know about --set-upstream in Git 1.7, but that is a post-creation action. I want to find a way to make a similar change when pushing the branch to the remote repository.

I want to be able to do the following:

  1. Create a local branch based on some other (remote or local) branch (via git branch or git checkout -b)

  2. Push the local branch to the remote repository (publish), but make it trackable so git pull and git push will work immediately.

enter image description here

How do I do that?

I know about --set-upstream in Git 1.7, but that is a post-creation action. I want to find a way to make a similar change when pushing the branch to the remote repository.

I want to be able to do the following:

  1. Create a local branch based on some other (remote or local) branch (via git branch or git checkout -b)

  2. Push the local branch to the remote repository (publish), but make it trackable so git pull and git push will work immediately.

How do I do that?

I know about --set-upstream in Git 1.7, but that is a post-creation action. I want to find a way to make a similar change when pushing the branch to the remote repository.

added an illustrative picture
Source Link
VividD
  • 10.1k
  • 6
  • 60
  • 109

I want to be able to do the following:

  1. Create a local branch based on some other (remote or local) branch (via git branch or git checkout -b)

  2. Push the local branch to the remote repository (publish), but make it trackable so git pull and git push will work immediately.

enter image description here

How do I do that?

I know about --set-upstream in Git 1.7, but that is a post-creation action. I want to find a way to make a similar change when pushing the branch to the remote repository.

I want to be able to do the following:

  1. Create a local branch based on some other (remote or local) branch (via git branch or git checkout -b)

  2. Push the local branch to the remote repository (publish), but make it trackable so git pull and git push will work immediately.

How do I do that?

I know about --set-upstream in Git 1.7, but that is a post-creation action. I want to find a way to make a similar change when pushing the branch to the remote repository.

I want to be able to do the following:

  1. Create a local branch based on some other (remote or local) branch (via git branch or git checkout -b)

  2. Push the local branch to the remote repository (publish), but make it trackable so git pull and git push will work immediately.

enter image description here

How do I do that?

I know about --set-upstream in Git 1.7, but that is a post-creation action. I want to find a way to make a similar change when pushing the branch to the remote repository.

Active reading.
Link
Peter Mortensen
  • 29k
  • 21
  • 97
  • 124
Loading
Made title into a question in a consistent format with other top questions
Link
Steve Chambers
  • 32.7k
  • 15
  • 132
  • 180
Loading
deleted 5 characters in body
Source Link
jutky
  • 3.7k
  • 6
  • 30
  • 43
Loading
edited tags
Link
Alexander Oh
  • 21.1k
  • 12
  • 67
  • 72
Loading
deleted 116 characters in body
Source Link
pfnuesel
  • 11.5k
  • 12
  • 53
  • 64
Loading
Expansion. Copy edited. Removed historical information (e.g. ref. <http://meta.stackexchange.com/a/230693> and <http://meta.stackoverflow.com/questions/266164>).
Source Link
Peter Mortensen
  • 29k
  • 21
  • 97
  • 124
Loading
Improved title and body formatting.
Source Link
user456814
user456814
Loading
Question Protected by Jorgesys
edited tags; edited title
Source Link
CharlesB
  • 77.8k
  • 27
  • 180
  • 206
Loading
added 175 characters in body
Source Link
Roni Yaniv
  • 51.2k
  • 5
  • 17
  • 15
Loading
Source Link
Roni Yaniv
  • 51.2k
  • 5
  • 17
  • 15
Loading