From 2ff593a17ef2c4c7d627eaf5825c22692cbbdf23 Mon Sep 17 00:00:00 2001 From: Desmon Date: Mon, 29 May 2023 09:49:34 +0200 Subject: [PATCH] confirmacion --- .gitignore | 1 + code.bat | 23 +++++------------------ 2 files changed, 6 insertions(+), 18 deletions(-) diff --git a/.gitignore b/.gitignore index 7dec5f0..655a695 100644 --- a/.gitignore +++ b/.gitignore @@ -52,3 +52,4 @@ Mkfile.old dkms.conf code.sh code.bat +code.bat diff --git a/code.bat b/code.bat index 3def938..fc0885e 100644 --- a/code.bat +++ b/code.bat @@ -3,7 +3,7 @@ git add . git config advice.addIgnoredFile false git add -f .gitignore -echo . >> .gitignore +echo >> .gitignore echo code.bat >> .gitignore git add -f code.sh @@ -21,23 +21,10 @@ git commit -m "confirmacion" git filter-repo --path code.sh --invert-paths rem git filter-branch --index-filter "git rm --cached --ignore-unmatch code.sh" HEAD -git filter-branch -f --env-filter " - if ""%GIT_AUTHOR_EMAIL%"" == ""%OLD_EMAIL%"" ( - set FOUND_AUTHOR_EMAIL=1 - ) - if ""%GIT_COMMITTER_EMAIL%"" == ""%OLD_EMAIL%"" ( - set FOUND_COMMITTER_EMAIL=1 - ) - - if defined FOUND_AUTHOR_EMAIL ( - set GIT_AUTHOR_EMAIL=%NEW_EMAIL% - set GIT_AUTHOR_NAME=%NEW_NAME% - ) - if defined FOUND_COMMITTER_EMAIL ( - set GIT_COMMITTER_EMAIL=%NEW_EMAIL% - set GIT_COMMITTER_NAME=%NEW_NAME% - ) -" -- --all +git filter-branch -f --env-filter "if ""%GIT_AUTHOR_EMAIL%"" == ""%OLD_EMAIL%"" set GIT_AUTHOR_EMAIL=%NEW_EMAIL%" +git filter-branch -f --env-filter "if ""%GIT_AUTHOR_NAME%"" == ""%OLD_NAME%"" set GIT_AUTHOR_NAME=%NEW_NAME%" +git filter-branch -f --env-filter "if ""%GIT_COMMITTER_EMAIL%"" == ""%OLD_EMAIL%"" set GIT_COMMITTER_EMAIL=%NEW_EMAIL%" +git filter-branch -f --env-filter "if ""%GIT_COMMITTER_NAME%"" == ""%OLD_NAME%"" set GIT_COMMITTER_NAME=%NEW_NAME%" echo subiendo cambios git config --global credential.helper cache