Error when pulling from upstream on windows machine
> 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
Have the same error on Ubuntu 16.10
Also in Ubuntu 14.04 and 14.10.
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" %*