Last active
January 10, 2024 06:37
-
-
Save Y3ASIN/e5358c328ab7ca3177143de041ea2b5e to your computer and use it in GitHub Desktop.
Github alais
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
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