git push error "fatal: Unable to find remote helper for 'https'" - github

I've added remote origin like:
git remote add origin https://github.com/username/repo.git
When I push the git repository, I get this error:
git push -u origin master
fatal: Unable to find remote helper for 'https'
I am on git 1.7.1 on Ubuntu 10.04.4 LTS
Any ideas, greatly appreciated

If you compiled git from source, be sure to install this package first:
apt-get install libcurl4-openssl-dev

I just got the problem yesterday and solved it today, so am posting in case this might help a Windows user. For me, the problem occurred after I updated to the latest version of Git (because Visual Studio was recommending I do so-- something about things not matching.)
It turns out that I installed in the default directory Program Files, but my old Git was in Program Files (x86). (Hadn't noticed until tried reinstalling.)
Uninstalling the new version and installing the 64-bit Git for Windows Setup listed under Other Git for Windows downloads (which is not the default) overlaying the version in Program Files (x86) worked. (I tried other combinations of version and folders first.)
I did have to delete the local repository already created and restart with git init, git add ., git commit -m "first commit", git remote add origin theGitUrl (all of which worked before), before doing the git push origin master. The weird thing is that a pop-up window appeared to enter my user name and password. I didn't notice it at first and thought the processing on the git push was hung up. So, heads up about that "Other Git for Windows" version.
I did change my Environmental Variables before the fix; I don't know if that helped. I added these 2 to the PATH:
C:\Program Files (x86)\Git\bin
C:\Program Files (x86)\Git\libexec\git-core
I did this for both User and System variables.
A note on updating the PATH in Windows 10: you have to add one at a time and not include the ;

After much searching, the answer is you need git version 1.7.7
Can't update RVM - "fatal: Unable to find remote helper for 'http'"

I was working in a chroot jail and thought i had copied everything i needed for git to work but i was missing the git-core files themselves so i just had to copy them:
cp -r /usr/lib/git-core /opt/chroot/myjail/usr/lib/

Add this to git config: (Checked in centos 6.7 and working)
#git config --global url.https://.insteadOf git://
#To see the config added
#git config --list
url.https://.insteadof=git://
user.name=username
user.email=youremail
....

Related

Can't clone nor stage git with lfs through egit

Enviroment
I did setup an test enviroment for git-lfs. This includes Git 1.9.5, Eclipse 4.6.2 and EGit 4.4.0/4.6.0. git-lfs is installed and works. Eclipse shows the right git configuration parameters set by git lfs install (Preferences->Team->Git->Configuration->User Settings). Git-lfs is available in the PATH of git bash and the windows CMD.
Git and Git-LFS just works fine throught git bash.
Problem
It's important that it's possible to use git throught Eclipse Plugins, which is currently EGit. EGit usually seems to support git-lfs, but in my case I am not able to clone nor stage (cloned throught git bash).
Clone:Execution of filter command 'git-lfs smudge -- 'SW/xy.jar'' on file 'SW/xy.jar' failed with return code '2', message on stderr: 'Downloading 'SW/xy.jar' (289.10 KB)
Stage: Execution of filter command 'git-lfs clean -- 'SW/xy.jar'' on file 'SW/xy.jar' failed
Questions
Does someone have any suggestion what am I doing wrong?
Why is git-lfs clean executed throught adding/staging?
Thanks in advance! Any help will be appreciated!
Updating from GIT 1.9.5 to the current Version (2.11.1) helped!

Sourcetree error : 'git status' failed with code -1073741819

Started getting following error in Sourcetree suddenly. I dont know what is the reason behind it. but I am nit able to resolve it.
Not able to perform any operation.
I ran into this as well. I followed the steps here and it solved my problem:
https://jira.atlassian.com/browse/SRCTREE-2018
Specifically:
Using the terminal and changing your directory to your repository you can do the following (making sure you back up your repository first, just in case):
rm .git/index
git add .
Or if you have changes in your working directory you want to keep you can do the following:
rm .git/index
git reset HEAD .
I had the same issue and it was not fixed even if I deleted the .git/index and .git/index.lock file.
I had to go to SourceTree Options -> Git and select "Use Embedded Git" to make it work. Before it was "Use System Git".
This is happening because Git was installed and then SourceTree with Git inside.
This generated a conflict between the two installed GITs.
You need to uninstall Git or in the SourceTree installation point where it is installed.
I'm facing with the same issue. My software configuration is:
Windows 10
SourceTree 2.0.18.1 configured to use System Git version
Git v2.12.2.windows.1
I updated Git to v2.12.2.windows.2 (the latest build) and the problem
disappeared.
Try doing this
close Sourcetree window
open Sourcetree Bookmarks view
delete bookmark
add bookmark again

Sourcetree Can't Open Git Bash

On Windows 8 & trying to use SourceTree as my Git client -- all works but the following:
When I hit the terminal button in Sourctree it says "It has not been possible to start the Git Bash terminal" (yes, I'm using the default SourceTree setting to launch the git bash terminal when this button is clicked).
I am able to bring up said terminal but then I have to cd into the proper directory. Really would like the terminal button to work in SourcTree.
Yeah, for me the solution was to upgrade GIT to newest version. I had 1.9.4 and now I have 2.6.3. It works great. Also I noticed that git has new console right now, I see more colors here :)
Check your git version. If you still have system Git 1.9.5 running, then better upgrade to 2.6.3 now. Check your Git Path too then restart SourceTree. The new git bash terminal looks like this:
This may be useful if Cygwin is installed.
Thanks for suggesting to upgrade Git, but it didn't resolve the issue for me on Windows 7.
To find out Git's location, open a new Git Bash and invoke the which git command:
$ "which git"
/usr/bin/git
Remove git.exe from C:\cygwin\bin.
Restarted SourceTree and it worked.

Eclipse Egit Failed to commit

I got Eclipse for PHP developers 3.0.2 With Egit 2.2.0 installed, and I am on windows 7
I got my project and repository set up and linked.
Yet i cant commit changes. this is the error i get:
Exception caught during execution of add command
Exception caught during execution of add command
I got Git for windows installed and set that in the Git configuration.
I also got my HOME variable set up with %USERPROFILE%
Also my project location is on a remote server that i mapped to Z:
This includes the git repo as well.
That remote location has Lubuntu 12.10 installed.
It has git installed as well.
I found what was the problem.
Git locked it self witha file in the ./git/index.lock
After i removed that everything worked fine.
Thanks to #NaGeL182.. I got it working now because Git locked
So I need to delete the .git/index.lock file
On Mac just Hit below command On Terminal
rm -f ./.git/index.lock
on Windows
del .git\index.lock
Hope this will help.
My 2 cents...
My git workspace is mapped locally on the dropbox folder (i'm a bit paranoid and prefers double backup options). Sometimes there's a mismatch with the sync process and dropbox keeps the git .lock file.
Since all i care about is my resources and not the git metadata - i've simply unchecked the .git folder from synching online.
give this a try, go to your repository and execute below command !
chmod -R 777 .git
I hit this issue on a Windows 11 machine. The fix was to remove the 'hidden' attribute from all files under the .git directory

how to configure a git server to share projects

I currently have Fedora 17 inside a VM on my win7 computer. I want to configure the VM to manage my projects with git. I use eclipse helios on win7 with the egit plugin with my projects currently residing locally. Git and all the dependencies are already installed on the VM. The VM's hostname is dev.local and SSH is already installed, so I would use the following URL for access: ssh://john#dev.local:/php/projects/myframework.git
My question is, how do I initialize a new git repository on my VM and then push my local project up so that it's being managed by git in the VM?
OK, i finally figured it out. What I ended up doing was on my VM which is my Git server, was create my git directory:
# mkdir /home/brett/myproject.git && cd /home/brett/myproject.git
# git init --bare
On my client, in the project's folder (C:\www\myproject):
# git init
# git add .
# git commit -m "Initial commit"
# git remote add origin ssh://brett#dev.local/myproject.git
# git push origin master
I removed my client copy of the project and in eclipse, File > Import > Git > Project from Git, Select URI.
I plugged in the details to access the git repo on dev.local and was able to create a local copy in eclipse.
Anyways, thx everyone who took the time to reply to this. I actually found a decent article online which helped.
http://www.vogella.com/articles/EGit/article.html
run a git daemon in your vm. The git protocol would make it easier for you.