diff --git a/shell/alias/git.sh b/shell/alias/git.sh index 8310385..04719c1 100644 --- a/shell/alias/git.sh +++ b/shell/alias/git.sh @@ -82,6 +82,16 @@ git_branch_set_upstream() { "${@}" } +# clean untracked files +gcf() { git_clean_force "${@}"; } +git_clean_force() { + git \ + clean \ + -d \ + --force \ + "${@}" +} + # redo the last commit with a different message gcam() { git_commit_amend_message "${@}"; } git_commit_amend_message() { @@ -103,16 +113,6 @@ git_commit_empty_message() { "${@}" } -# clean untracked files -gcf() { git_clean_force "${@}"; } -git_clean_force() { - git \ - clean \ - -d \ - --force \ - "${@}" -} - # commit the index gcm() { git_commit_message "${@}"; } git_commit_message() {