Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

Error when pulling from upstream on windows machine #224

Open
stefanleh opened this issue Jan 23, 2017 · 3 comments
Open

Error when pulling from upstream on windows machine #224

stefanleh opened this issue Jan 23, 2017 · 3 comments
Labels

Comments

@stefanleh
Copy link

> 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

@nsrosenqvist
Copy link

Have the same error on Ubuntu 16.10

@MobileAZN
Copy link

Also in Ubuntu 14.04 and 14.10.

@MarcelMue MarcelMue added the bug label Mar 26, 2017
@silverkorn
Copy link

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" %*

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants