/ Published in: Bash
Need to have '[remote "origin"]' set in git config file, and:
Expand |
Embed | Plain Text
In config file -----------config---------------- ... [branch "master"] remote = origin merge = refs/heads/master --------------------------------- -------------git.sh-------------- #!/bin/sh f_cleanCache () { rm css/.sass-cache/ -R } f_pull () { git pull origin } f_push () { git push origin } while : # Loop forever do cat << ! R U N M E N U 1. Pull From Origin 2. Push To Origin 3. Quit ! echo -n " Your choice? : " read choice case $choice in 1) f_pull ;; 2) f_push ;; 3) exit ;; *) echo "\"$choice\" is not valid "; sleep 2 ;; esac done
You need to login to post a comment.
