1 problem

For example, my project is a 0.2 branch, I need to change the project’s Git address, and then pull the new code

1) Change the Github address (readers can ignore)

1. Git remote View all remote repositories 2. Git remote rm Origin Delete the original repository 3Copy the code

The project has switched to a new Git address, and NOW I need to pull the code

git pull
Copy the code

The error is as follows

IGG@A12128 MINGW64 /f/browesr/program/*** (**-0.2) $git pull There is no tracking information for the current branch. Please specify which branch you want to merge with. See git-pull(1) for details. git pull <remote> <branch> If you wish To set tracking information for this branch you can do so with: git branch --set-upstream =origin/<branch> browser-0.2Copy the code

A message is displayed indicating that the current Branch has no trace information

2 Solutions

Git branch -- set-uppage-to =origin/****-0.2 ****-0.2Copy the code
git pull
Copy the code

It is ok