Nothing happens with a `git pull`

泪湿孤枕 提交于 2019-12-22 10:46:10

问题


Since yesterday, I have a big issue with my Professional computer : I cannot use git pull. This is really weird because every other git command's works.

What I tried :

  • Reinstalling Github for Windows, Git Shell, etc...
  • Look if I can access to the remote server (git push work, I can ping the remote server).

GIT_TRACE=1 git pull return :

$ GIT_TRACE=1 git pull
trace: exec: 'git-pull'
trace: run_command: 'git-pull'

An other thing is strange : now on a git repository, I didn't see the current repository on the git shell :

MY_USER@MY_COMPUTER /c/Github/myRepo 
$

Usually, my CLI looks like this :

MY_USER@MY_COMPUTER /c/Github/myRepo <develop>
$

I'm thinking the problem is software because I got an 'entreprise' package update just before the issue. My configuration : Windows 8.1 Professional with Github for Windows and I'm using Git shell.

If someone has an idea to fix this or how can I debug this command, I appreciate.

EDIT

git remote -v returns :

$ git remote -v
origin  https://MY_USER@git-SI.enterprise.fr/PROJECT/windows/PROJECT_repo.git (fetch)
origin  https://MY_USER@git-SI.enterprise.fr/PROJECT/windows/PROJECT_repo.git (push)

git statusreturns :

$ git status
# On branch develop
# Your branch is ahead of 'origin/develop' by 1 commit.
#   (use "git push" to publish your local commits)
#
nothing to commit, working directory clean

回答1:


The problem was an update of our enterprise antivirus software : it blocks all bash commands (like ls, clear on my prompt command).



来源:https://stackoverflow.com/questions/27121222/nothing-happens-with-a-git-pull

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!