Last active
November 11, 2018 06:50
-
-
Save ronokdev/cfe97d670d9cce93f0f3714c6a995fe4 to your computer and use it in GitHub Desktop.
Git alias
This file contains 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
:: RefURL → https://koukia.ca/personalizing-git-aliasing-commands-4dda73b54081 | |
:: Declear add & commit together in the git Config → | |
→ git config --global alias.add-commit "!git add -A && git commit" (For Windows) | |
→ git config --global alias.add-commit '!git add -A && git commit' (Linux) | |
:: Now Add & Commit together → | |
→ git add-commit -m "Commit Message" | |
::: git Alias LIST → | |
→ git config --global alias.co checkout | |
→ git config --global alias.st status | |
→ git config --global alias.cob checkout -b | |
→ git config --global alias.loggraph "log --all --decorate --oneline --graph --stat" | |
→ git config --global alias.l "log --decorate --oneline --pretty=format:\"%cn committed %h on %cd : %s\"" | |
→ git config --global alias.ac "!git add -A && git commit" | |
→ git config --global alias.ca "commit --amend --no-edit" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
:: Delete a git alias →
OR