Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #git function
- function gitcp {
- local srvr='origin'
- local message=''
- if [ -n "$2" ]; then
- srvr="$1"
- message="$2"
- elif [ -n "$1" ]; then
- message="$1"
- fi
- git add --all
- git commit -am "${message}"
- git push "${srvr}" $(__git_ps1 "%s")
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement