Can't update: no tracked branch No tracked branch configured for branch dev.

1.git pull 命令出现以下错误

$ 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-to=origin/<branch> dev

2.按照提示设置

git branch --set-upstream-to=origin/dev

3.再 git pull 时提示成功

$ git pull
Already up-to-date.

Can't update: no tracked branch No tracked branch configured for branch dev.

时间: 2024-12-16 15:11:30

Can't update: no tracked branch No tracked branch configured for branch dev.的相关文章

IDEA新建项目提交到git仓库时报错:Can&#39;t Update No tracked branch configured for branch master or the branch...

写了一天代码,提交时报错.拉取也不行 Can't Update No tracked branch configured for branch master or the branch doesn't exist. To make your branch track a remote branch call, for example, git branch --set-upstream-to=origin/master master (show balloon) 原因: Git 不知道你要pul

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

git连接不上远程仓库---visualstudio提交代码报错:no upstream configured for branch &#39;master&#39;

1,新建文件夹,在文件下下鼠标右键git bush--->git init,初始化仓库: 2,设置gitthub仓库地址:git remote add origin https://github.com/z*****g/lm.git 3,git pull origin master 4,git push --set-upstream origin master,关联一个远程分支,并从这个分支上传下带代码 git branch查看分支 git add . git commit -m "提交注

Can&#39;t update: no tracked branch

git更新错误:Can't update: no tracked branch No tracked branch configured for branch master. To make your branch track a remote branch call, for example, git branch --set-upstream master origin/master 解决: git branch --set-upstream master origin/master 或 g

What is the purpose for IT Pro in Windows 10 Creators Update

Windows 10, version 1703-also known as the Windows 10 Creators Update-is designed for today's modern IT environment with new features to help IT pros more easily manage, and better protect, the devices and data in their organizations. It also provide

svn branch and merge(svn切换分支和合并)详解

下文的实践主要是参考了TortoiseSVN的帮助文档和Subversion的在线文档,Subversion的在线文档:http://svnbook.red-bean.com/en/1.5/svn-book.html 先说说什么是branch.按照Subversion的说法,一个branch是某个development line(通常是主线也即trunk)的一个拷贝,见下图: branch存在的意义在于,在不干扰trunk的情况下,和trunk并行开发,待开发结束后合并回trunk中,在bran

svn的branch truck tag

对于branch truck tag一直迷迷糊糊的,想搞明白,但是一直又没来弄明白,最近就用了这种方式来开发 可以我又不是完全了解怎么操作,所以查看了下资料,这个解释得很详细呀,连我都看得懂的东西,真所谓"写得真好",记录下,转载http://blog.csdn.net/keda8997110/article/details/21813035 先说说什么是branch.按照Subversion的说法,一个branch是某个development line(通常是主线也即trunk)的一

svn merge和branch

使用svn几年了,一直对分支和合并敬而远之,一来是因为分支的管理不该我操心,二来即使涉及到分支的管理,也不敢贸然使用合并功能,生怕合并出了问题对团队造成不良影响,最主要的原因是,自己对分支的目的和合并的方法不甚了解,这才是硬伤. 最近由于适配机型的需要(本人从事手机客户端的开发),需要经常接触分支和合并两项工作,突然发现这玩意整不明白很难开展工作,遂这两天着重研究了一下,有点收获,怕以后忘了,故趁着余温尚在赶紧写下来,好记性不如烂笔头嘛.下文的实践主要是参考了TortoiseSVN的帮助文档和S

SVN版本管理trunk及branch相关merge操作

先说说什么是branch.按照Subversion的说法,一个branch是某个development line(通常是主线也即trunk)的一个拷贝,见下图: branch存在的意义在于,在不干扰trunk的情况下,和trunk并行开发,待开发结束后合并回trunk中,在branch和trunk各自开发的过程中,他们都可以不断地提交自己的修改,从而使得每次修改在repository中都有记录. 设想以下场景,如果你的项目需要开发一个新功能,而该功能可能会修改项目中的绝大多数文件,而与此同时,你