Permalink
Browse files

Added git push -f alias

  • Loading branch information...
1 parent 2ef3776 commit cd4fb8b07990bff16884e36aa5de9af2714baf14 @ndbroadbent ndbroadbent committed Dec 4, 2012
Showing with 2 additions and 0 deletions.
  1. +1 −0 git.scmbrc.example
  2. +1 −0 lib/git/aliases.sh
View
@@ -55,6 +55,7 @@ git_fetch_all_alias="gfa"
git_fetch_and_rebase_alias="gfr"
git_pull_alias="gpl"
git_push_alias="gps"
+git_push_force_alias="gpsf"
git_pull_then_push_alias="gpls"
git_status_original_alias="gst"
git_status_short_alias="gss"
View
@@ -106,6 +106,7 @@ if [ "$git_setup_aliases" = "yes" ]; then
__git_alias "$git_checkout_branch_alias" "git" 'checkout' "-b"
__git_alias "$git_pull_alias" "git" 'pull'
__git_alias "$git_push_alias" "git" 'push'
+ __git_alias "$git_push_force_alias" "git" 'push' '-f'
__git_alias "$git_status_original_alias" "git" 'status' # (Standard git status)
__git_alias "$git_status_short_alias" "git" 'status' '-s'
__git_alias "$git_clean_alias" "git" "clean"

0 comments on commit cd4fb8b

Please sign in to comment.