Skip to main content
added 6 characters in body
Source Link
Gayan Weerakutti
  • 13.2k
  • 4
  • 73
  • 73

To fetch changes from the remote repository into your local repo:

git fetch --all

Rename the tracking branch:

git branch -m <old-branch-name> <new-name>

Create a new local branch tracking the remote branch:

git checkout -b <old-branch-name>

To fetch changes from the remote repository into your local repo:

git fetch

Rename the tracking branch:

git branch -m <old-branch-name> <new-name>

Create a new local branch tracking the remote branch:

git checkout -b <old-branch-name>

To fetch changes from the remote repository into your local repo:

git fetch --all

Rename the tracking branch:

git branch -m <old-branch-name> <new-name>

Create a new local branch tracking the remote branch:

git checkout <old-branch-name>
Source Link
Gayan Weerakutti
  • 13.2k
  • 4
  • 73
  • 73

To fetch changes from the remote repository into your local repo:

git fetch

Rename the tracking branch:

git branch -m <old-branch-name> <new-name>

Create a new local branch tracking the remote branch:

git checkout -b <old-branch-name>