There are two (perhaps more!) but mainly two ways to set up aliases for your git on your shell.
1link$alias gp='git push -u origin HEAD'
1link$function acp() {
2link$git add .
3link$git commit -m "$1"
4link$git push -u origin HEAD
5link$}
6link$
1link$function gitnewrepo() {mkdir $1 && cd $1 && git init && hub create && touch README.md && echo "# " $1 >> README.md && git add . && git commit -m "init" && git push -u origin HEAD;}
1link$git config --global alias.l "log
2link$ --graph
3link$ --pretty=oneline
4link$ --abbrev-commit
5link$ --decorate"
6link$git l
1link$git config --global alias.undo reset HEAD~1 --mixed
1link$git config --global alias.last 'log -1 HEAD --stat'
1link$git config --global alias.gl 'config --global -l'
Home Backstory Why Git? Setting Up GitHub GitHub CLI Your GitHub Profile GitHub Pages Creating A New Repo Cloning A Repository Your First Commit Ignoring Files In Git Stashing Your Changes Branching With Git Merging Git Branches Rebasing Vs Merging Git Workflows Fork And Pull Flow Your First Pull Request Automated Security Alerts Seeing The Differences Removing/Deleting Files Reverting Your Commits Configuring your Git Commit Templates Creating Shortcuts Dotfile Management Sponsoring Open Source Handy Commands Thank You