# Passwort Cache aktivieren und Timeout verlängern git config --global credential.helper cache git config --global credential.helper "cache --timeout=3600"
# git "forcepull" # vi .git/config # ... [alias] forcepull = "!git fetch ; git reset --hard @{u}"
cd ~ git clone https://github.com/magicmonty/bash-git-prompt.git .bash-git-prompt --depth=1
# vi /home/<my-user>/.bashrc # ... GIT_PROMPT_ONLY_IN_REPO=1 # GIT_PROMPT_STATUS_COMMAND=gitstatus_pre-1.7.10.sh. # git --version < 1.7.10 #GIT_PROMPT_THEME=Solarized GIT_PROMPT_THEME=Single_line_Ubuntu source ~/.bash-git-prompt/gitprompt.sh
Will man z.B. von einem gitlab auf einen reinen GIT-Server (z.B. auf einer Synology) umziehen, kann dies mit git bundle
exportiert werden.
# local (laptop) cd <mein-gitlab-projekt> git bundle create <mein-gitlab-projekt>.bundle --all cd .. # remote (synology) cd /volume1/git mkdir <mein-git-projekt> cd <mein-git-projekt> git init --bare # local (laptop) git clone git@<meine-synology>:/volume1/git/<mein-git-projekt> cd <mein-git-projekt> git pull ../<mein-gitlab-projekt>/<mein-gitlab-projekt>.bundle git push
Sollten beim Git-Server „selfsigned certificates“ eingesetzt werden, kann man git konfigurieren, dass keine ssl-Überprüfung mehr stattfindet.
git config http.sslVerify false