我最近将我的MacBook专业版升级到雪豹版,"git pull“返回:
rakudo $ git pull
git: 'pull' is not a git-command. See 'git --help'
Did you mean this?
shell
rakudo $ git-pull
-bash: git-pull: command not found
我尝试过通过macports重新安装,但没有效果。然后我看到了这个
rakudo $ git --exec-path
/Users/ovid/libexec/git-core
我有个奇怪的问题
我的系统是雪豹(10.6.4) -我不能从我的RubyMine拉取,但我可以提交和推送。最好的是,当我运行终端并输入"git pull“时,它工作得很好。
在ruby mine控制台中有一些错误:
/usr/local/git/libexec/git-core/git-sh-setup: line 71: basename: command not found
/usr/local/git/libexec/git-core/git-sh-setup: line 71: sed: command not found
/usr/local/git/libexec/git-
我正试着在我的服务器上安装一个git 'post-receive‘。我在钩子文件中使用了以下代码:
#!/bin/bash
#CONFIG
LIVE="/home/ubuntu/public_html/testing"
read oldrev newrev refname
if [ $refname = "refs/heads/master" ]; then
echo "===== DEPLOYING TO LIVE SITE ====="
unset GIT_DIR
cd $LIVE
# ssh-agent $BAS
我不明白为什么我的生产服务器似乎认为它在我的主分支之前。我使用fabric进行部署,它从github上的主分支在服务器上运行git pull。据我所知,我不会在生产服务器上进行任何更改,当然也不会在生产服务器上进行提交。
git status收益率:
# On branch master
# Your branch is ahead of 'github/master' by 57 commits.
#
nothing to commit (working directory clean)
据我所知,生产服务器上的内容与我的开发环境中的主分支相匹配。至少这个网站
我正在尝试从远程名为"front“的分支之一拉到名为”back“的分支:
git checkout front
git pull
但我收到的错误信息如下:
Please specify which branch you want to merge with.
See git-pull(1) for details.
git pull <remote> <branch>.
我现在该怎么做?提前谢谢..
我有一个“主”裸存储库和一个“个人”裸存储库。我想要将更改从"main“更新为"personal",所以我运行:
$ git pull
fatal: /home/gimenero/applib/git/libexec/git-core/git-pull cannot be used without a working tree.
如何拉取推送到main的变更?
go版本go1.5.1 windows/amd64 64 git版本1.9.5.msysgit.1
我一直想买些围棋图书馆。当在golang.org上访问时,可以很好地下载它们,但是github.com或google.golang.org包会出现错误。
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 --recurse-submodules
git submodule update --init --recursive
但是我得到了一个错误:
You are not currently on a branch. Please specify which
branch you want to merge with. See git-pull(1) for details.
git pull <remote> <branch>
我能做什么?有没有其他方法可以在分离的头上更新子模块?用例是jenki
我有一个普通的存储库,其中有一个工作树和一个与工作树相同的目录中的.git文件夹。
我正在尝试使用以下命令从此位置外部运行git命令
git --git-dir=/path/to/repo/.git --work-tree=/path/to/repo pull /some/other/repo master
但我一直收到错误fatal: /usr/libexec/git-core/git-pull cannot be used without a working tree.。
我做错了什么?
我正在研究一个由同事创建的新部门。我已经提交了所有的更改,当我尝试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 branc
我在Jenkins做了一个git克隆。
然后在我的脚本中,我运行以下命令:
git pull --recurse-submodules
它从子模块中提取。
不幸的是,我得到了错误:
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>
我怎么才能让詹金斯从师父那里拔出头来呢?我想确保mast
我正在运行(在脚本中-尝试避免使用cd):
git --git-dir=/test/.git --work-tree=/test/ pull
并获得:
fatal: /usr/lib/git-core/git-pull cannot be used without a working tree.
请注意,我已经使用这种结构运行过其他命令(特别是add、commit和pull),所以我认为这只是一个pull问题。
这里记录了一个类似的问题:,但它并不完全相同--它们得到了不同的错误(而且它们是在Windows上运行的,所以谁知道呢……我在Ubuntu上)。
我承诺并推动。
然后,其他人在我的分支中更改了一些东西,并提交和推送。我试着拉,因为我想得到这些变化。
结果:
From servername
3de3ee5..4db9ed8 Andrea -> origin/Andrea
You asked me to pull without telling me which branch you
want to merge with, and 'branch.Andrea.merge' in
your configuration file does not tell me, either. Please
specify
所以我用Jira创建了一个分支,我在我的本地系统上检查了这个分支。现在我试着对我的本地系统做一个git拉,但是我收到了这个消息
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 bran
在不使用shell的情况下,我可以在git别名上使用参数吗?
例如,我的主远程分支总是被称为"upstream",有时git会丢失对我的本地分支的引用,并说:
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 i
每次我把新的改变/分支推到格瑞特:
git push origin HEAD:refs/for/82-blah
我总是收到评论信息,上面写着:
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 th