Created
February 7, 2025 04:09
-
-
Save Ebrahim-Ramadan/0851a1074c2aa79f3518f2c2f32ebfdb to your computer and use it in GitHub Desktop.
A simple $PROFILE function to create a push alias for Git that combines git add ., git commit -m "$1", and git push into one command. Add this to your Microsoft Powershell PROFILE for a faster Git workflow.
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
function push { | |
param ( | |
[string]$message | |
) | |
git add . | |
git commit -m $message | |
git push | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment