Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency. See the online documentation for help.

Overview

Two pages with most used commands and common use cases:  (German)

Configuration

The global configuration of git is saved in the file ~/.gitconfig. A useful example for such a configuration is 

[alias]
	l = log --graph --pretty=format:'%C(yellow)%h%C(reset) %C(green)%ai%C(reset)%C(red)%d%C(reset) %s %C(green)%an%C(reset)'
	la = log --graph --all --pretty=format:'%C(yellow)%h%C(reset) %C(green)%ai%C(reset)%C(red)%d%C(reset) %s %C(green)%an%C(reset)'
	lr = log --graph --pretty=format:'%C(yellow)%h%C(reset) %C(green)%ar%C(reset)%C(red)%d%C(reset) %s %C(green)%an%C(reset)'
	lra = log --graph --all --pretty=format:'%C(yellow)%h%C(reset) %C(green)%ar%C(reset)%C(red)%d%C(reset) %s %C(green)%an%C(reset)'
	ld = log --oneline --decorate --graph
	lda = log --oneline --decorate --graph --all
	ll = log --graph --all --pretty=format:'%C(yellow)%h%C(reset) %C(green)%ar%C(reset)%C(red)%d%C(reset) %s %C(green)%an%C(reset)'

	s = status -sb
	
[color]
	ui = true

[push]
	default = simple
  • Keine Stichwörter