git
Basics
Working with a local repository Create a repository, add files, commit changes Create a git repository git init Get git status git status Add a file This will open a text editor(Vim) to save a comment git add file.txt See the status of the repository with git log After a file change it hase to be added again. To place updated file in the staging you have to run git add -u De wijzigingen kunnen opnieuw opgeslagen worden met inline comments »
Basic Config
Basic Config Git Global config (for local sytem user) git config --global user.name "Gregg Pollack" git config --global user.email [email protected] git config --global color.ui true Aliases Edit the . gitconfig file and add git aliases In windows you find the . gitconfig in C:\Program Files\Git\mingw64\etc [alias] co = checkout ci = commit st = status br = branch hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short type = cat-file -t dump = cat-file -p »