Skip to content

Instantly share code, notes, and snippets.

@Tknott95
Created March 10, 2018 10:40
Show Gist options
  • Save Tknott95/602236b54544cea544cdb0e5e2ee23b2 to your computer and use it in GitHub Desktop.
Save Tknott95/602236b54544cea544cdb0e5e2ee23b2 to your computer and use it in GitHub Desktop.
Cust Git Shell Funcs with argv[0]
alias ml="cd ~/Workspace/Python/MachineLearningReference/"
alias bp="source ~/.bash_profile"
# Functions @BashByTrev
function g() {
date_custom=$(date '+%d/%m/%Y %H:%M:%S');
commit_ending=" || @TK - $date_custom "
echo "Commit Ending: $commit_ending"
echo '1) Adding . in Repo: '
git add .
git commit -m "$1$commit_ending" && git push
echo "Commited Msg: $1$commit_ending"
}
# END @BashByTrev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment