Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pull not working - TortoiseGIT / Windows 7 / GIT on Debian + gitolite

i have a weird issue. Im using TortoiseGIT (Win7) and my repositories are placed on a vritual server (Debian), where im using gitolite and SSH keys.

I can clone the repository to my PC, i can run Fetch, Push, Commit, Sync .. everything, but when trying to Pull the changes from server Pushed by other contributor, the following error appears:

git.exe pull -v --progress      "origin"
fatal: 'pull' appears to be a git command, but we were not
able to execute it. Maybe git-pull is broken?
git did not exit cleanly (exit code 128)

I don't understand, why just the pull command is not working .. thanks for any help.

I can make a clone of the repository, with the contributed changes .. but can not Pull the changes to created repository on my PC.

like image 320
arnie Avatar asked Apr 20 '12 20:04

arnie


People also ask

Is Git required for TortoiseGit?

As a command-line git client is required for using TortoiseGit, you have to install both. The recommended order is to install TortoiseGit first. Just download the setup package for your system and install it.

How do I run TortoiseGit?

Go to the TortoiseGit website and download the installation package for 32-bit or 64-bit Windows. Double-click the installation package. In the window displayed, click Next for several times and then click Install to complete the installation. Click Finish to run the tool.

Is TortoiseGit and Git same?

TortoiseGit is a Git revision control client, implemented as a Windows shell extension and based on TortoiseSVN. It is free software released under the GNU General Public License.

What is pull in TortoiseGit?

Fetch just downloads the objects and refs from a remote repository and normally updates the remote tracking branches. Pull, however, will not only download the changes, but also merges them - it is the combination of fetch and merge (cf. the section called “Merging”).


2 Answers

I encountered this same issue after changing the git Bash executable sh.exe to be always run as administrator (to get round another problem). It then left git unable to access it under certain scenarios and caused various "Maybe git-* is broken?" errors. Perhaps this might help someone...

like image 178
Peter Avatar answered Mar 03 '23 19:03

Peter


Uninstalling old Git and reinstalling the latest build fixed this issue for me.

Here's a link to the installers Link to get installers

My exact error message was

C:\Program Files (x86)\Git/libexec/git-core\git-pull: line 304: exec: git-merge: not found
fatal: 'pull' appears to be a git command, but we were not
able to execute it. Maybe git-pull is broken?
like image 23
Steven Avatar answered Mar 03 '23 18:03

Steven