Files
git.taskfile.build/bin/reset-git-folder
T
Janik von Rotz c1f97636cf feat(bin): add git folder management utilities and enhance task command parsing
- Introduce new git folder management functions: `clean-git-folder`, `commit-git-folder`, `ls-git-folder`, `push-git-folder`, `reset-git-folder`, `stage-git-folder`, `status-git-folder`
- Add `.prompt/update-switch-case-for-all-task-files` script to update task files with comma-separated command support
- Enhance task command parsing to support comma-separated commands with whitespace trimming and error handling
- Document all new git folder functions in `library.md` under Git section
- Add all new git folder functions to help table in `task.template`
- Update `library.md` to include folder structure overview and fix typos
- Maintain consistent formatting and structure with existing code
2025-12-03 09:22:46 +01:00

11 lines
279 B
Bash
Executable File

#!/usr/bin/env bash
reset-git-folder() {
local git_folders=$(ls-git-folder)
for git_folder in $git_folders; do
echo "Abort rebase and reset git folder $git_folder."
git -C "$git_folder" rebase --abort
git -C "$git_folder" reset --hard
done
}