atom-git-control icon indicating copy to clipboard operation
atom-git-control copied to clipboard

Error when pulling from upstream on windows machine

Open stefanleh opened this issue 8 years ago • 3 comments

> git pull upstream $(git branch | grep '^*' | sed -n 's/*[ ]*//p')
sed: -e Ausdruck #1, Zeichen 1: Unbekannter Befehl: `''
fatal: 'upstream' does not appear to be a git repository
fatal: Could not read from remote repository.

I've got sed from: http://gnuwin32.sourceforge.net/packages/sed.htm

Best regards, Stefan

stefanleh avatar Jan 23 '17 13:01 stefanleh

Have the same error on Ubuntu 16.10

nsrosenqvist avatar Feb 10 '17 05:02 nsrosenqvist

Also in Ubuntu 14.04 and 14.10.

MobileAZN avatar Feb 27 '17 19:02 MobileAZN

Actually, I got similar issue but with grep (probably also sed) since I do not install Git for Windows with all of the Unix commands in my %PATH% to avoid problems with other applications for commands like find.

As a workaround on my end, I create a batch file in my .\cmd directory, which is part of my %PATH%, with the name of the executable command from .\usr\bin, so it acts as a symlink without the need of administrator access.

Here the batch file, just copy this for every executable you need to access and change the name of the .bat of .cmd file to the one you need:

@ECHO OFF
"%~dp0\usr\bin\%~n0.exe" %*

silverkorn avatar May 08 '17 16:05 silverkorn