====== git - Command Übersicht ======
# 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}"
===== bash git prompt =====
cd ~
git clone https://github.com/magicmonty/bash-git-prompt.git .bash-git-prompt --depth=1
# vi /home//.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
===== git "Umzug" =====
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
git bundle create .bundle --all
cd ..
# remote (synology)
cd /volume1/git
mkdir
cd
git init --bare
# local (laptop)
git clone git@:/volume1/git/
cd
git pull ..//.bundle
git push
===== selfsigned certificates =====
Sollten beim Git-Server "selfsigned certificates" eingesetzt werden, kann man git konfigurieren, dass keine ssl-Überprüfung mehr stattfindet.
git config http.sslVerify false