Skip to content

ahmedtoumi/git_aliases

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

Git Aliases

Some default alises

$ git config --global alias.co checkout

$ git config --global alias.br branch

$ git config --global alias.ci commit

$ git config --global alias.st status

Firstable don't forget to source your file EX:

$ source ~/.bashrc

Some examples with created aliases (see [.bashrc] (https://github.com/ahmedtoumi/git_aliases/blob/master/.bashrc) file to get real shell commands)

update branch1 than make it up to date to master

$ update_branch branch1 master

stash not indexed items with message on param1, and switch to onother branch (param2)

$ stash_then_branch "put stash message here ..." branch_to_switch_on

show log with git graph

$ graph_log

show what have been changed from last commit

$ dlc

clean local git : delete all branchs that has been merged with master

$ clean_local

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages