Last active
September 4, 2025 20:52
-
-
Save qis/4e13b90d3c070912251f3186d6332448 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # git in # initialize repository | |
| # git up # fetch updates and prune deleted branches | |
| # git br # list available branches | |
| # git co <branch> # checkout a specific branch | |
| # git ls # show commits | |
| # git st # show modified files status | |
| # git sw <branch> # create new branch with current changes | |
| # git add <files> # stage file | |
| # git add --renormalize <files> # re-process tracked files after line ending changes | |
| # git ll # list files | |
| # git ui --chmod=+x <files> # set executable bit. | |
| # git commit # create commit | |
| # git cm "message" # stage all files and create commit | |
| # git ca # amend last commit message | |
| # git push -u origin <branch> # push new branch | |
| # git push origin -d <branch> # delete remote branch after merge | |
| # git branch -D <branch> # delete local branch after deleting remote branch | |
| # git clean -dfx # delete untracked files (add -n or --dry-run to list them) | |
| # git checkout -- <files> # undo all local changes to specific files | |
| # git reset "HEAD^" # delete commit, but keep changes | |
| [user] | |
| name = NAME | |
| email = MAIL | |
| [credential "https://github.com"] | |
| username = USERNAME | |
| [core] | |
| eol = lf | |
| autocrlf = false | |
| filemode = false | |
| quotepath = false | |
| whitespace = blank-at-eol,blank-at-eof,space-before-tab,cr-at-eol | |
| compression = 9 | |
| fscache = true | |
| editor = "code --wait" | |
| [alias] | |
| ll = "!git ls-files --abbrev -s" | |
| lx = "!git ls-files --abbrev -s | grep -v '^100644'" | |
| in = "!git init && git config core.filemode false" | |
| ls = "!git --no-pager log --reverse -100" | |
| cm = "!git add --all && git commit -m" | |
| ca = commit --amend | |
| ui = update-index | |
| up = fetch --prune | |
| br = branch -a -vv | |
| co = switch | |
| sw = switch -m -c | |
| st = status | |
| [init] | |
| defaultBranch = master | |
| [apply] | |
| whitespace = fix | |
| [diff] | |
| mnemonicPrefix = true | |
| [blame] | |
| coloring = repeatedLines | |
| date = short | |
| [pull] | |
| rebase = false | |
| [push] | |
| default = simple | |
| [format] | |
| pretty = %C(brightblack)%h%C(reset) %C(blue)%as%C(reset) %C(green)%<(15,trunc)%an%C(reset) %s | |
| [color] | |
| ui = auto | |
| [color "diff"] | |
| meta = yellow bold | |
| frag = magenta | |
| [color "status"] | |
| added = green | |
| changed = yellow | |
| [filter "lfs"] | |
| required = true | |
| clean = git-lfs clean -- %f | |
| smudge = git-lfs smudge -- %f | |
| process = git-lfs filter-process |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment