Skip to content

Instantly share code, notes, and snippets.

@4unkur
Forked from mateusjatenee/git_functions.sh
Created April 1, 2022 02:36
Show Gist options
  • Save 4unkur/c3341e92d76b36137048e50346589a46 to your computer and use it in GitHub Desktop.
Save 4unkur/c3341e92d76b36137048e50346589a46 to your computer and use it in GitHub Desktop.
function c {
git add --all
git commit -m $1
}
function p {
git add --all
git commit -m $1
branch=`git branch | grep "*"`
git push origin ${branch/* /}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment