You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
395 B
19 lines
395 B
3 months ago
|
@echo off
|
||
|
|
||
|
REM Reset the last commit
|
||
|
git reset HEAD~1
|
||
|
|
||
|
REM Loop through all folders in the current directory
|
||
|
for /d %%F in (*) do (
|
||
|
echo Processing folder: %%F
|
||
|
git add "%%F"
|
||
|
git commit -m "Partial commit for %%F"
|
||
|
)
|
||
|
|
||
|
REM Handle root-level files
|
||
|
echo Adding root-level files
|
||
|
git add *
|
||
|
git commit -m "Partial commit for root-level files"
|
||
|
|
||
|
echo Splitting commits by folders is complete.
|