Here is the graceful memo.
I copy&paste it to here.
To remove a submodule you need to:
--recursive
?Do it in the Git repo.
git submodule update --init --recursive
https://stackoverflow.com/questions/107701/how-can-i-remove-ds-store-files-from-a-git-repository
find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch
git status -v
git reset --soft HEAD~1
git reset --soft HEAD~3
git commit
git checkout -b new-branch-name
git clone --mirror {{ original_repo }}
cd {{ original_repo }}
git push --mirror git@{{ server_name }}:{{ group_name }}/{{ repository_name }}.git
https://sdqweb.ipd.kit.edu/wiki/Git_pull_--rebase_vs._--merge
good take away.
git config --global pull.rebase true
git submodule update --rebase --remote
edit .gitmodule
git submodule sync
git submodule update --init --recursive --remote
git add .gitmodule
git commit
git push
git clone -b branch_name --single-branch git@github.com:atlex00/myrepo.git
hello-world
* main
remotes/origin/HEAD -> origin/main
remotes/origin/hello-world
remotes/origin/main
git branch -rd origin/hello-world
hello-world
* main
remotes/origin/HEAD -> origin/main
remotes/origin/main
git branch --set-upstream-to=origin/error-handling error-handling
git reset --soft HEAD~
You can change commit contents and the last commit message.