2019-08-08-zsh-git-commands
ggpush
is equivalent to
ggpull
is equivalent to
ggpull someBranch
is equivalent to
It pulls someBranch
to and merges to local currentBranch
.
gco someBranch
is equivalent to
gco .
is equivalent to
It checkouts latest commit in current branch.
It is used to undo/remove your local changes.
Warning: all your local changes would be lost.
gd
is equivalent to
To show current changes in terminal.
gd someRevNo / gd someBranch
To show difference between current head and given reference
gcb someNewBranch
is equivalent to
I use it to create a new branch
gcl someRepoURL
is equivalent to
To clone repository locally
gaa
is equivalent to
gcmsg someText
is equivalent to
glog
is equivalent to
To see logs of commit with lines
gss
is equivalent to
To see list of files with changes
gcam someMessage
is equivalent to
Add all changes and commit with a message
Last updated
Was this helpful?