There is no tracking information for the current branch

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 master origin/<branch>

看到第二个提示,我们现在知道了一种解决方案。也就是指定当前工作目录工作分支,跟远程的仓库,分支之间的链接关系。

比如我们设置master对应远程仓库的master分支

git branch --set-upstream master origin/master

这样在我们每次想push或者pull的时候,只需要 输入git push 或者git pull即可。

在此之前,我们必须要指定想要push或者pull的远程分支。

git push origin master

git pull origin master.

时间: 2024-10-12 00:05:10

There is no tracking information for the current branch的相关文章

&quot;There is no tracking information for the current branch&quot; 解决方法

因为新创建的分支push到远程仓库后没有与本地分支关联,下面语句可以令远程分支与本地分支关联起来 git branch --set-upstream-to=origin/release_3.1.3 release_3.1.3 上面的origin/release_3.1.3是已经推送到远程的分支 末尾的release_3.1.3是本地分支

git 设置tracking information

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

Deleting remote master branch, refused due to being current branch

git - Deleting remote master branch, refused due to being current branch - Stack Overflow In the settings block on the options tap in the settings page (well, just click on the Settings tab on your github repo page), you are able to change the defaul

[Practical Git] Switching between current branch and last checkout branch

When working on a project, it is much easier to work on features and bugs in isolation of the rest of the project. We can do this with git branches; a branch is a copy of the working directory, staging area, and project history; we create a branch, t

(转)Updates were rejected because the tip of your current branch is behind

刚创建的github版本库,在push代码时出错: $ git push -u origin masterTo [email protected]:******/Demo.git ! [rejected] master -> master (non-fast-forward)error: failed to push some refs to '[email protected]:******/Demo.git'hint: Updates were rejected because the ti

eclipse git 报错:the current branch is not configured for pull No value for key branch.xxx.merge found

eclipse git 报错:the current branch is not configured for pull No value for key branch.xxx.merge found in configuration 如图: 这是因为 在用gui创建分支的时候 config文件没有创建branch 在config文件加上 [branch "xxx"] remote = origin merge = refs/heads/xxx 即可 eclipse git 报错:th

The current branch is not configured for pull No value for key branch.master.merge found in configur

github虽说挺好用,但对于新手来说,还是个噩梦,比如说对我- - ,搞得乱七八糟,还把之前用来爬微博数据的爬虫给搞没了 这个问题是在Myeclispe 中,右键项目 team 选择pull时报错的,国内很多人都有各自乱七八糟的解答,没几个能用的 在Stackoverflow找到了答案,原题地址 http://stackoverflow.com/questions/8820668/the-current-branch-is-not-configured-for-pull-no-value-fo

git:解决The current branch is not configured for pull No value for key branch.master.merge found in config

网上多半都是命令行下的解决方案,我用的是EGit,所以要在eclipse里(我的版本是kepler)把下面这句话添加到配置文件中. Window->Preference->Team->Git->Configuration->Repository Settings->选择你的repository,然后点open [branch "master"]  remote = origin  merge = refs/heads/master 第二种 1.在本地

解决The current branch is not configured for pull No value for key branch.master.merge found in config

网上多半都是命令行下的解决方案,我用的是EGit,所以要在eclipse里(我的版本是kepler)把下面这句话添加到配置文件中. Window->Preference->Team->Git->Configuration->Repository Settings->选择你的repository,然后点open [branch "master"]  remote = origin  merge = refs/heads/master 第二种 1.在本地