From a9fa61d7a85785b500b9d14a4b36999e11fea60e Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 17 Nov 2024 17:02:03 +0100 Subject: [PATCH] clean --- shell/alias/git.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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() {