Add an alias to show a git log with all the branches and remotes
This commit is contained in:
@@ -83,6 +83,7 @@ git_reset_last_commit="grsl"
|
|||||||
git_merge_alias="gm"
|
git_merge_alias="gm"
|
||||||
git_cherry_pick_alias="gcp"
|
git_cherry_pick_alias="gcp"
|
||||||
git_log_alias="gl"
|
git_log_alias="gl"
|
||||||
|
git_log_all_alias="gla"
|
||||||
git_log_stat_alias="gls"
|
git_log_stat_alias="gls"
|
||||||
git_log_graph_alias="glg"
|
git_log_graph_alias="glg"
|
||||||
git_show_alias="gsh"
|
git_show_alias="gsh"
|
||||||
|
|||||||
@@ -103,6 +103,9 @@ if [ "$git_setup_aliases" = "yes" ]; then
|
|||||||
git_log_command="log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
|
git_log_command="log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
|
||||||
__git_alias "$git_log_alias" "git" "$git_log_command"
|
__git_alias "$git_log_alias" "git" "$git_log_command"
|
||||||
|
|
||||||
|
# Same as the above, but displays all the branches and remotes
|
||||||
|
__git_alias "$git_log_all_alias" "git" "$git_log_command" "--branches" "--remotes"
|
||||||
|
|
||||||
# Standard commands
|
# Standard commands
|
||||||
__git_alias "$git_clone_alias" "git" 'clone'
|
__git_alias "$git_clone_alias" "git" 'clone'
|
||||||
__git_alias "$git_fetch_alias" "git" 'fetch'
|
__git_alias "$git_fetch_alias" "git" 'fetch'
|
||||||
|
|||||||
Reference in New Issue
Block a user