-
Notifications
You must be signed in to change notification settings - Fork 0
troubleshooting
Björn edited this page Apr 24, 2018
·
3 revisions
This is a collection of problems the user may or may not encounter while using this software
error: remote: git: 'worktree' ist kein Git-Kommando. Siehe 'git --help'. after pushing into remote repo
reason: old version of git (e.g. the ones shipped with the latest version of redhat in 2017/18) don't know about worktrees yet
solution: install your own git: https://stackoverflow.com/a/16974714/5132456
the commands are:
nano ~/.bashrc
# add: export PATH=$HOME/bin:$PATH
source ~/.bashrc
echo $PATH
# optional: try new path via ssh joe@server 'echo $PATH'
# get href to most recent tarball from https://github.com/git/git/releases
curl -LO https://github.com/git/git/archive/v2.17.0.tar.gz
tar -xzvf v2.17.0.tar.gz
cd git-2.17.0/
NO_CURL=yes make #use NO_CURL because there is no libcurl4-dev on redhat
NO_CURL=yes make install
git --version