Skip to content

Instantly share code, notes, and snippets.

@Ebrahim-Ramadan
Created February 7, 2025 04:09
Show Gist options
  • Save Ebrahim-Ramadan/0851a1074c2aa79f3518f2c2f32ebfdb to your computer and use it in GitHub Desktop.
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.
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