Skip to content

Latest commit

 

History

History
41 lines (34 loc) · 938 Bytes

README.md

File metadata and controls

41 lines (34 loc) · 938 Bytes

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