Skip to content

Instantly share code, notes, and snippets.

@aburaihan-dev
Forked from ronokdev/Git alias
Created July 25, 2018 12:23
Show Gist options
  • Save aburaihan-dev/284b1f3188cb093a9ce4dcfd6aa10fa1 to your computer and use it in GitHub Desktop.
Save aburaihan-dev/284b1f3188cb093a9ce4dcfd6aa10fa1 to your computer and use it in GitHub Desktop.
Git commit & All Together
:: 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 "git status"
→ git config --global alias.cob "checkout -b"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment