Skip to content

Instantly share code, notes, and snippets.

@Y3ASIN
Last active January 10, 2024 06:37
Show Gist options
  • Save Y3ASIN/e5358c328ab7ca3177143de041ea2b5e to your computer and use it in GitHub Desktop.
Save Y3ASIN/e5358c328ab7ca3177143de041ea2b5e to your computer and use it in GitHub Desktop.
Github alais
To merge git add, git commit & git push there is a function:
[alias]
"lazy" = "!f() { git add -A && git commit -m \"$@\" && git push; }; f"
To use alais:
1. In mac or linux open your terminal and type "git config --global --edit".
i. For windows type "git config --global -e".
2. Then there will be an editable section you have to use vim.
3. For set alais insert "i" to write text in the terminal.
4. Then insert ":" colon to save and to save & quit ":q!" in the terminal.
Next time try the "git lazy 'your comment'" command in the terminal while uploading your code on the github.
You can set any name you want: "lazy (I use this)" or "cmp" or any shortcut.
Hope you like it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment