Skip to content

Lazy people guide to avoid typing same git commands again and again

Notifications You must be signed in to change notification settings

svadnala/git_lazy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Lazy person's guide to avoid typing... long git commands again and again

Ignore this if you're not lazy! for others continue being lazy 😏

code/git_lazy # source git_lazy/git_lazy.sh

Few examples:

Push changes from current branch to upstream/remote origin

code/git_lazy # gpuo

Pull latest changes from remote into local

code/git_lazy # gplo

Git show changes of HEAD/ Last commit

code/git_lazy # gshlc

Show commit message of HEAD

code/git_lazy # glcmsg

Diffs

# shows diff between current branch and develop branch
code/git_lazy # gdiffdev

# vanilla diff
code/git_lazy # gf

Checkouts

# checkout to branch_x
code/git_lazy # gck branch_x
# checkout from current branch into new_branch
gckbr new_branch

Commit with JIRA number

# extracts jira from feature branch ({f|feature}/ABC-1234-blah-blah)
code/git_lazy # gcom "this is a commit"

commit message : [ABC-1234] this is a commit

About

Lazy people guide to avoid typing same git commands again and again

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages