Skip to content

Instantly share code, notes, and snippets.

@eranws
Created April 5, 2023 20:01
Show Gist options
  • Save eranws/3dbe94af26d5a162776c0570ec3716aa to your computer and use it in GitHub Desktop.
Save eranws/3dbe94af26d5a162776c0570ec3716aa to your computer and use it in GitHub Desktop.
alias bf="git commit -am'brnfrt' && git add . && git push"
@eranws
Copy link
Author

eranws commented Apr 9, 2023

# one liner
alias bf="git add . && git commit -am'b.nf.t' && git push" && echo brnfrt is fantastic. hit 'bf' from shell

# command with param
lf() {
    echo "git add ."
    git add .
    echo "$1"
    git commit -am"[bf]: $1"
    echo "push"
    git push
}
echo logf is fantastic. hit 'lf' from shell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment