Collection of git tips / commands / docs to keep them in one accessible place.
git config --global user.name <name>
git config --global user.email <email>
git init <directory>
git clone <repo>
git status
git add <directory>
git commit -m "<message>"
git log
git diff
git revert <commit>
git reset
Reset staging area and working directory to match most recent commit and overwrites all changes in the working directory.
git reset --hard
git branch -a
git checkout -b <branch>
git merge <branch>
Interactively rebase current branch onto . Launches editor to enter commands for how each commit will be transferred to the new base.
git rebase -i <base>
git tag
Create a tag reference named name for current commit. Add commit sha to tag a specific commit instead of current one.
git tag <name> <commit sha>
git fetch
git pull
git push [--tags]
CI Robots @dwsclass dws-dev-004-git
License: APACHE LICENSE, VERSION2.0