Git: There is no tracking information for the current branch.
时间: 2023-10-19 19:27:56 浏览: 194
解决idea 拉取代码出现的 “ Сannot Run Git Cannot identify version of git executable: no response“的问题
This error message usually occurs when you try to push or pull from a Git repository without specifying the remote branch. To resolve this issue, you can set up tracking for the current branch by using the following command:
```
git branch --set-upstream-to=<remote>/<branch>
```
Replace `<remote>` with the name of the remote repository (e.g., origin) and `<branch>` with the name of the branch you want to track. Once you set up the tracking information, you should be able to push and pull from the repository without seeing that error message.
阅读全文