setup
create a new repositary
checkout a repository
add & commit
pushing changes
branching
update & merge
log
replace local changes
References
git clone /path/to/repository
git init
git add <filename>
git commit -m "Commit message"
git add *
git push origin <branch>
git checkout -b <newbranchname>
git checkout master
2. switch back to master
3. delete the branch again
git branch -d <newbranchname>
master
newbranch
branch
merge
git pull
git fetch
git merge <branch>
git diff <source_branch> <target_branch>
git log
git log --name-status
git checkout -- <filename>
git fetch origin
git reset --hard origin/master