diff --git a/.bash_aliases b/.bash_aliases index ac8b39f..0436b87 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -43,6 +43,24 @@ alias get-nordserverlist="wget https://downloads.nordcdn.com/configs/archives/se alias wireshark-pfsense="sudo su -c 'wireshark -k -i <(ssh root@192.168.0.3 -p 2222 tcpdump -i lagg0 -U -w - )'" +# Git Functions +function gpm() { + if [ "$(grep -c "[branch "master"]" .git/config )" -gt 0 ]; then + git push origin master + elif [ "$(grep -c "[branch "main"]" .git/config )" -gt 0 ]; then + git push origin main + else + echo "fatal: not a git repository (or any of the parent directories): .git" +fi +} + +function gac() { +echo "Log Message: " +read logmessage +git add --all && git commit --allow-empty-message -m "$logmessage" +} + + # Updates packages from all sources function update() { if command -v snap >/dev/null; then