{"id":15703647,"url":"https://github.com/goxr3plus/ultimate-git-aliases","last_synced_at":"2025-07-14T03:39:54.510Z","repository":{"id":89888529,"uuid":"148279440","full_name":"goxr3plus/Ultimate-Git-Aliases","owner":"goxr3plus","description":"Ma personal favourite git aliases for every day coding","archived":false,"fork":false,"pushed_at":"2019-11-12T11:44:58.000Z","size":29,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-08T16:03:14.595Z","etag":null,"topics":["aliases","git"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/goxr3plus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-11T07:38:50.000Z","updated_at":"2023-09-08T17:44:55.000Z","dependencies_parsed_at":"2023-06-16T00:45:15.614Z","dependency_job_id":null,"html_url":"https://github.com/goxr3plus/Ultimate-Git-Aliases","commit_stats":{"total_commits":30,"total_committers":1,"mean_commits":30.0,"dds":0.0,"last_synced_commit":"f392e9c53429f2d2a29686942ddf46446aa0db7c"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/goxr3plus/Ultimate-Git-Aliases","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goxr3plus%2FUltimate-Git-Aliases","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goxr3plus%2FUltimate-Git-Aliases/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goxr3plus%2FUltimate-Git-Aliases/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goxr3plus%2FUltimate-Git-Aliases/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/goxr3plus","download_url":"https://codeload.github.com/goxr3plus/Ultimate-Git-Aliases/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goxr3plus%2FUltimate-Git-Aliases/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265237771,"owners_count":23732519,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aliases","git"],"created_at":"2024-10-03T20:04:17.252Z","updated_at":"2025-07-14T03:39:54.486Z","avatar_url":"https://github.com/goxr3plus.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"![image](https://git-scm.com/images/logos/downloads/Git-Logo-2Color.png)\n\n# Ultimate-Git-Aliases\nMa personal favourite git aliases for every day coding . In order for some commands to work on Linux maybe you have to slightly modify them . For example instead of `\"` you need to add `'` on bash .\n\n[Cmder](http://cmder.net/) is one of the best tools for console lovers ... it has everything .\n\n## What is Git Alias?\n\nGit Alias is a collection of git version control shortcuts, functions, and commands:\n\n  * Shortcuts such as `s` for `status`.\n  * Improvements such as `optimize` to do a prune and repack with recommended settings.\n  * Topic branch flows such as `topic-start` to create a new topic branch using master.\n  * Visualizations such as `graphviz` to show logs and charts using third-party tools.\n\n#### Good to know\nI will add more and more aliases on the future and modify this read me file . Feel free to pull request if you want some of your own to be added here :)\n\n#### On windows CMD and PowerShell\n\n **1** Git status : `git st`\n\n `\u003e git config --global alias.st status`\n\n  =\u003e**1.1** Git branch : `git br`\n\n   `\u003e git config --global alias.br branch`\n \n  =\u003e**1.2** Git checkout : `git co`\n\n   `\u003e git config --global alias.co checkout`\n \n  =\u003e**1.2.1** Git checkout - create new branch: `git cob`\n\n   `\u003e git config --global alias.cob checkout -b`\n \n  =\u003e**1.3** Git commit : `git c`\n\n   `\u003e git config --global alias.c commit`\n \n  =\u003e**1.4** Git push : `git ps`\n\n   `\u003e git config --global alias.ps push`\n \n  =\u003e**1.5** Git pull : `git pl`\n\n   `\u003e git config --global alias.pl pull`\n \n  =\u003e**1.6** Git fetch : `git fe`\n\n   `\u003e git config --global alias.fe fetch`\n \n  =\u003e**1.7** Git add all : `git aa`\n\n   `\u003e git config --global alias.aa add -A`\n \n**2** List all aliases : `git logA`\n\n`\u003e git config --global alias.logA \"!git config --get-regexp alias\"`\n\n**3** Add all and commit : `git ac \"Your message\"`\n\n`\u003e git config --global alias.ac \"!git add -A \u0026\u0026 git commit\"`\n\n**4** Pretty log all commits : `git lg`\n\n`\u003e git config --global alias.lg \"log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)\u003c%an\u003e%Creset' --abbrev-commit\"`\n\n**5** Pretty log only the releaase tags : `git tags`\n\n`\u003egit config --global alias.tags \"git log --no-walk --tags --pretty='%h %d %s' --decorate=full\"`\n\n[More recommendations](https://git-scm.com/book/en/v2/Git-Basics-Git-Aliases) from official git tutorials .\n\n#### --------- Remove Git Aliases---------\n\n[Stackoverflow tutorial](https://stackoverflow.com/questions/23512402/how-can-i-delete-a-git-alias)\n\n\u003egit config --global --unset alias.aliasName\n\nFor example\n\n\u003egit config --global --unset alias.st\n\n# Complete list taken from the console\n\n``` java\nalias.br branch                                                                                                                                  \nalias.ci commit                                                                                                                                  \nalias.st status                                                                                                                                  \nalias.last log -1 HEAD                                                                                                                           \nalias.visual !gitk                                                                                                                               \nalias.dfw diff --ignore-space-change                                                                                                             \nalias.lg !git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)\u003c%an\u003e%Creset' --abbrev-commit\nalias.fc !git add -A \u0026\u0026 git commit                                                                                                               \nalias.add-commit !git add -A \u0026\u0026 git commit                                                                                                       \nalias.ac !git add -A \u0026\u0026 git commit                                                                                                               \nalias.loga !git config --get-regexp alias                                                                                                        \nalias.lg2 log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)\u003c%an\u003e%Creset' --abbrev-commit    \nalias.tags !git log --no-walk --tags --pretty='%h %d %s' --decorate=full                                                                         \nalias.doggy !git log --oneline --decorate --all --graph                                                                                          \nalias.c commit                                                                                                                                   \nalias.p push                                                                                                                                     \nalias.pl pull                                                                                                                                    \nalias.fe fetch                                                                                                                                   \nalias.ps push                                                                                                                                    \nalias.cob !git checkout -b                                                                                                                       \nalias.aliases config --get-regexp alias                                                                                                          \nalias.aa add                                                                                                                                     \nalias.co checkout                                                                                                                                \nalias.bra br -a                                                                                                                                  \nalias.fu fetch --prune                                                                                                                           \nalias.d !git diff                                                                                                                                \nalias.reb !git rebase -i                                                                                                                         \nalias.cof !git co -f                                                                                                                             \n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoxr3plus%2Fultimate-git-aliases","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoxr3plus%2Fultimate-git-aliases","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoxr3plus%2Fultimate-git-aliases/lists"}