feat(git): add comprehensive git folder management commands and update documentation

This commit is contained in:
Janik von Rotz committed 2026-03-04 09:36:40 +01:00
1 parent 793b608732
commit 84f7ebfccb
15 files changed
+342 -10

No files matched your search

+6 -1
View File
@@ -1,7 +1,12 @@
#!/usr/bin/env bash
reset-git-folder() {
local git_folders=$(ls-git-folder)
if [[ -z "$1" ]]; then
echo '$1/path is empty.'
exit
fi
local git_folders=$(ls-git-folder "$1")
for git_folder in $git_folders; do
echo "Abort rebase and reset git folder $git_folder."
git -C "$git_folder" rebase --abort