问题
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 status
returns :
$ 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