├── README.md ├── 02 git status ├── 06 git pull ├── 03 git log ├── 00 git config ├── 05 git fetch ├── 13 git reset ├── 14 git rebase ├── 07 git merge ├── 04 git diff ├── 08 git branch ├── 11 git remote ├── 12 git push ├── 09 git checkout ├── 10 git commit └── 01 git clone /README.md: -------------------------------------------------------------------------------- 1 | # git-for-devops 2 | Useful git commands for devops 3 | -------------------------------------------------------------------------------- /02 git status: -------------------------------------------------------------------------------- 1 | 2 | NAME 3 | git-status - Show the working tree status 4 | 5 | SYNOPSIS 6 | git status [...] [--] [...] 7 | -------------------------------------------------------------------------------- /06 git pull: -------------------------------------------------------------------------------- 1 | 2 | NAME 3 | git-pull - Fetch from and integrate with another repository or a local branch 4 | 5 | SYNOPSIS 6 | git pull [] [ [...]] -------------------------------------------------------------------------------- /03 git log: -------------------------------------------------------------------------------- 1 | 2 | NAME 3 | git-log - Show commit logs 4 | 5 | SYNOPSIS 6 | git log [] [] [[--] ...] 7 | 8 | --graph --abbrev-commit --decorate --format -------------------------------------------------------------------------------- /00 git config: -------------------------------------------------------------------------------- 1 | 2 | NAME 3 | git-config - Get and set repository or global options 4 | 5 | SYNOPSIS 6 | git config [] [--type=] [--fixed-value] [--show-origin] [--show-scope] [-z|-- 7 | null] [ []] -------------------------------------------------------------------------------- /05 git fetch: -------------------------------------------------------------------------------- 1 | 2 | NAME 3 | git-fetch - Download objects and refs from another repository 4 | 5 | SYNOPSIS 6 | git fetch [] [ [...]] 7 | git fetch [] 8 | git fetch --multiple [] [( | )...] 9 | git fetch --all [] -------------------------------------------------------------------------------- /13 git reset: -------------------------------------------------------------------------------- 1 | 2 | NAME 3 | git-reset - Reset current HEAD to the specified state 4 | 5 | SYNOPSIS 6 | git reset [-q] [] [--] ... 7 | git reset [-q] [--pathspec-from-file= [--pathspec-file-nul]] [] 8 | git reset (--patch | -p) [] [--] [...] 9 | git reset [--soft | --mixed [-N] | --hard | --merge | --keep] [-q] [] -------------------------------------------------------------------------------- /14 git rebase: -------------------------------------------------------------------------------- 1 | NAME 2 | git-rebase - Reapply commits on top of another base tip 3 | 4 | SYNOPSIS 5 | git rebase [-i | --interactive] [] [--exec ] 6 | [--onto | --keep-base] [ []] 7 | git rebase [-i | --interactive] [] [--exec ] [--onto ] 8 | --root [] 9 | git rebase (--continue | --skip | --abort | --quit | --edit-todo | --show-current-patch) -------------------------------------------------------------------------------- /07 git merge: -------------------------------------------------------------------------------- 1 | 2 | NAME 3 | git-merge - Join two or more development histories together 4 | 5 | SYNOPSIS 6 | git merge [-n] [--stat] [--no-commit] [--squash] [--[no-]edit] 7 | [--no-verify] [-s ] [-X ] [-S[]] 8 | [--[no-]allow-unrelated-histories] 9 | [--[no-]rerere-autoupdate] [-m ] [-F ] 10 | [--into-name ] [...] 11 | git merge (--continue | --abort | --quit) -------------------------------------------------------------------------------- /04 git diff: -------------------------------------------------------------------------------- 1 | NAME 2 | git-diff - Show changes between commits, commit and working tree, etc 3 | 4 | SYNOPSIS 5 | git diff [] [] [--] [...] 6 | git diff [] --cached [--merge-base] [] [--] [...] 7 | git diff [] [--merge-base] [...] [--] [...] 8 | git diff [] ... [--] [...] 9 | git diff [] 10 | git diff [] --no-index [--] -------------------------------------------------------------------------------- /08 git branch: -------------------------------------------------------------------------------- 1 | 2 | NAME 3 | git-branch - List, create, or delete branches 4 | 5 | SYNOPSIS 6 | git branch [--color[=] | --no-color] [--show-current] 7 | [-v [--abbrev= | --no-abbrev]] 8 | [--column[=] | --no-column] [--sort=] 9 | [--merged []] [--no-merged []] 10 | [--contains []] [--no-contains []] 11 | [--points-at ] [--format=] 12 | [(-r | --remotes) | (-a | --all)] 13 | [--list] [...] -------------------------------------------------------------------------------- /11 git remote: -------------------------------------------------------------------------------- 1 | 2 | NAME 3 | git-remote - Manage set of tracked repositories 4 | 5 | SYNOPSIS 6 | git remote [-v | --verbose] 7 | git remote add [-t ] [-m ] [-f] [--[no-]tags] [--mirror=(fetch|push)] 8 | git remote rename [--[no-]progress] 9 | git remote remove 10 | git remote set-head (-a | --auto | -d | --delete | ) 11 | git remote set-branches [--add] ... 12 | git remote get-url [--push] [--all] 13 | git remote set-url [--push] [] -------------------------------------------------------------------------------- /12 git push: -------------------------------------------------------------------------------- 1 | 2 | NAME 3 | git-push - Update remote refs along with associated objects 4 | 5 | SYNOPSIS 6 | git push [--all | --mirror | --tags] [--follow-tags] [--atomic] [-n | --dry-run] [--receive-pack=] 7 | [--repo=] [-f | --force] [-d | --delete] [--prune] [-v | --verbose] 8 | [-u | --set-upstream] [-o | --push-option=] 9 | [--[no-]signed|--signed=(true|false|if-asked)] 10 | [--force-with-lease[=[:]] [--force-if-includes]] 11 | [--no-verify] [ [...]] -------------------------------------------------------------------------------- /09 git checkout : -------------------------------------------------------------------------------- 1 | 2 | NAME 3 | git-checkout - Switch branches or restore working tree files 4 | 5 | SYNOPSIS 6 | git checkout [-q] [-f] [-m] [] 7 | git checkout [-q] [-f] [-m] --detach [] 8 | git checkout [-q] [-f] [-m] [--detach] 9 | git checkout [-q] [-f] [-m] [[-b|-B|--orphan] ] [] 10 | git checkout [-f|--ours|--theirs|-m|--conflict=