Shortened title, removed extraneous unneeded information from question body, fixed punctutation.
Source Link
user456814
user456814

How do you make Make an existing Git branch track a remote branch?

I know how to make a new branch that tracks remote branches. But how do I make an existing branch track a remote branch., but how do I make an existing branch track a remote branch?

I know I can just edit the .git/config file, but it seems there should be an easier way.

It looks like this can't currently be done in a convenient way with the current (1.6.1.x) version of Git.

Git version >= 1.7.0 supports this. See the accepted answer.

How do you make an existing Git branch track a remote branch?

I know how to make a new branch that tracks remote branches. But how do I make an existing branch track a remote branch. I know I can just edit the .git/config file, but it seems there should be an easier way.

It looks like this can't currently be done in a convenient way with the current (1.6.1.x) version of Git.

Git version >= 1.7.0 supports this. See the accepted answer.

Make an existing Git branch track a remote branch?

I know how to make a new branch that tracks remote branches, but how do I make an existing branch track a remote branch?

I know I can just edit the .git/config file, but it seems there should be an easier way.

Copy edited. Removed historical information.
Source Link
Peter Mortensen
  • 30.7k
  • 21
  • 104
  • 125

How do you make an existing gitGit branch track a remote branch?

I know how to make a new branch that tracks remote branches. ButBut how do I make an existing branch track a remote branch. II know I can just edit the .git/config.git/config file, but it seems there should be an easier way.

EDIT It looks like this can't currently be done in a convenient way with the current (1.6.1.x) version of Git.

UPDATE Git version >= 1.7.0 supports this. See the accepted answer.

How do you make an existing git branch track a remote branch?

I know how to make a new branch that tracks remote branches. But how do I make an existing branch track a remote branch. I know I can just edit the .git/config file but it seems there should be an easier way.

EDIT It looks like this can't currently be done in a convenient way with the current (1.6.1.x) version of Git.

UPDATE Git version >= 1.7.0 supports this. See the accepted answer

How do you make an existing Git branch track a remote branch?

I know how to make a new branch that tracks remote branches. But how do I make an existing branch track a remote branch. I know I can just edit the .git/config file, but it seems there should be an easier way.

It looks like this can't currently be done in a convenient way with the current (1.6.1.x) version of Git.

Git version >= 1.7.0 supports this. See the accepted answer.

Question Protected by BЈовић
Rollback to Revision 5
Link
Dan Moulding
  • 203.8k
  • 22
  • 94
  • 97
edited tags
Link
Charles
  • 50.5k
  • 13
  • 103
  • 141
Loading
edited tags
Link
Dan Moulding
  • 203.8k
  • 22
  • 94
  • 97
Loading
edited tags
Link
Dan Moulding
  • 203.8k
  • 22
  • 94
  • 97
Loading
added 74 characters in body
Source Link
Pat Notz
  • 202.9k
  • 30
  • 89
  • 92
Loading
added 136 characters in body
Source Link
Pat Notz
  • 202.9k
  • 30
  • 89
  • 92
Loading
Source Link
Pat Notz
  • 202.9k
  • 30
  • 89
  • 92
Loading