Skip to content

Commit

Permalink
confirmacion
Browse files Browse the repository at this point in the history
  • Loading branch information
aaaaaa committed May 29, 2023
1 parent c2d6925 commit 4c2dd3d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ Module.symvers
Mkfile.old
dkms.conf
code.sh
code.bat
code.bat
26 changes: 22 additions & 4 deletions code.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
git add .
git config advice.addIgnoredFile false
git add -f .gitignore
echo code.sh >> .gitignore
echo . >> .gitignore
echo code.bat >> .gitignore

git add -f code.sh
git rm --cached "./code.sh"
Expand All @@ -17,9 +18,26 @@ git config --global user.name "%NEW_NAME%"
git config --global user.email "%NEW_EMAIL%"
git commit -m "confirmacion"

git filter-branch --index-filter "git rm --cached --ignore-unmatch code.sh" HEAD

git filter-repo --mailmap "%OLD_EMAIL% = %NEW_NAME% <%NEW_EMAIL%> %OLD_EMAIL% = %NEW_NAME% <%NEW_EMAIL%>" --force
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

echo subiendo cambios
git config --global credential.helper cache
Expand Down

0 comments on commit 4c2dd3d

Please sign in to comment.