dev-resources.site
for different kinds of informations.
Most commonly used Git command shortcuts
Published at
1/21/2024
Categories
git
github
gitcommands
beginners
Author
amburi
Author
6 person written this
amburi
open
I often rely on a set of Git command shortcuts that are widely used and find them quite convenient. Admittedly, it took me some time initially to become accustomed to them.
List of shortcuts:
-
alias g='git'
— Simplifies the Git command as 'g'. -
alias gs='git status'
— Quickly check the current Git repository status. -
alias ga='git add'
— Prepares changes for the next commit. -
alias gaa='git add .'
— Adds all changes in the working directory to the staging area. -
alias gc='git commit -m'
— Commits changes with a specified commit message. -
alias gca='git commit -am'
— Adds and commits all changes in one step with a commit message. -
alias gco='git checkout'
— Switches to a different branch or commit. -
alias gcb='git checkout -b'
— Creates and switches to a new branch. -
alias gbd='git branch -d'
— Deletes a specified branch. -
alias gba='git branch -a'
— Lists all branches, including remote branches. -
alias gbr='git branch'
— Lists local branches. -
alias gpl='git pull'
— Fetches changes from a remote repository and merges them into the current branch. -
alias gph='git push'
— Pushes changes to the remote repository. -
alias gpho='git push origin'
— Pushes changes to the 'origin' remote repository. -
alias gl='git log --oneline'
— Displays a simplified log of commits. -
alias gla='git log --oneline --decorate --graph --all'
— Displays a detailed and graphical log of all commits.
gitcommands Article's
20 articles in total
Git Commands Every Developer Must Know 🔥
read article
A Comprehensive Guide to All Git Commands for Every Developer
read article
Essential Git Commands Every Developer Should Know
read article
Git Commands for Test Automation: Best Practices and Advanced Techniques
read article
Git - Useful Commands
read article
7 BASIC GIT COMMANDS
read article
Most commonly used Git command shortcuts
currently reading
Git Basics: Git Commands and How to Use Them
read article
Git Basics: A Guide to Efficient Version Control and Collaborative Development
read article
Push your code to remote repo - Getting Started with Git Basics 2
read article
Getting Started with Git Basics
read article
Some less popular git commands
read article
Hacks e boas práticas de git
read article
Git Comfortable
read article
Basic Git Commands
read article
Git surgery #1
read article
Git Cheat Sheet
read article
My Git Hot Commands
read article
Getting started with Git? 10 commands that would save you…
read article
Find the right git commands without digging through the web
read article
Featured ones: