Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nextuponstream/b51c0aed7502c2db4e20ac3b92e7ab68 to your computer and use it in GitHub Desktop.
Save nextuponstream/b51c0aed7502c2db4e20ac3b92e7ab68 to your computer and use it in GitHub Desktop.
useful git shortcuts + gh installation

Append in .bashrc: Install github client with

### git
alias gpl="git pull"
alias gap="git add ."
alias gcm="git commit -m"
alias gps="git push"
alias gst="git status"
alias gch="git checkout"
alias gcb="git checkout -b"
alias gbd="git branch -d"
alias gis="gh issue list"
alias gbr="git branch"
alias giv="gh issue view"

gh is a github CLI tool. You can view issues and create pull requests from the terminal with it. Installation of gh:

# https://snapcraft.io/install/gh/ubuntu
sudo apt install snapd
sudo snap install gh --edge
gh version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment