1git config
Check your configuration settings
6git checkout HEAD
revert from committed to working directory
7git commit -m
for opening a text editor for longer message
8git diff
compares working directory with the staging area for the next commit
10git log - patch -*
seeing only * last commits
11git log -- stat
see only the abbreviated stats for each commit
12git log --shortstat
only changed/insertions/deletions from --stat
13git log --pretty
changes format of log output
14git log --since --after --until --before
filters of log command
15git log --author
author of commit
16git log -S function_nam
commits on the function
17git checkout --filename
discard a working directory file changes and restore its latest repository state
18git checkout
discard all changes in the working directory
19git checkout commit-id filename
retrieve a file from a specific commit into the staging area
20git blame README
shows last author of each line
21git rm fil
for removing files from working directory
22git rm --cached
stopping Git to track it
23git mv
for renaming a file
24git tag -a v1.4 -m"my version 1.4"
tag with -a
25git tag -l/--list "v1.8.5*"
for looking at 1.8.5 series
26git tag -d
for deleting tags
27git config --alias.co commit
renaming
28git commit --amend
redo a commit
29git reset HEAD CONTRIBUTING.md
unstage a commit
30git checkout --CONTRIBUTING.md
unmodifying a modified file discard changes
31git branch -v
last commit on each branch
32git branch --merged
see which branches are already merged into the branch you're on
33git branch --no-merged
to see the branches you haven't merged
34git branch --move
to rename branch name
35git push origin --delete branch_name
to delete the branch