You can have head branches automatically deleted after pull requests are merged in your repository. For more information, see “Managing the automatic deletion of branches.”
On GitHub, navigate to the main page of the repository.
Above the list of files, click NUMBER branches.
Scroll to the branch that you want to delete, then click delete icon.
shenweiyan@iZ7xv4bbjwm8qgx8m72z68Z16:29:13/home/shenweiyan/HugoSource
$gitadd--all
warning:addingembeddedgitrepository:themes/ICS-Hugo-Theme
hint:You've added another git repository inside your current repository.hint: Clones of the outer repository will not contain the contents ofhint: the embedded repository and will not know how to obtain it.hint: If you meant to add a submodule, use:hint:hint: git submodule add <url> themes/ICS-Hugo-Themehint:hint: If you added this path by mistake, you can remove it from thehint: index with:hint:hint: git rm --cached themes/ICS-Hugo-Themehint:hint: See "git help submodule" for more information.shenweiyan@iZ7xv4bbjwm8qgx8m72z68Z 16:29:13 /home/shenweiyan/HugoSource$ git submodule add https://github.com/shenweiyan/ICS-Hugo-Theme.git themes/ICS-Hugo-Theme'themes/ICS-Hugo-Theme' already exists in the indexshenweiyan@iZ7xv4bbjwm8qgx8m72z68Z 16:30:07 /home/shenweiyan/HugoSource$ git rm --cached themes/ICS-Hugo-Themeerror: the following file has staged content different from both thefile and the HEAD: themes/ICS-Hugo-Theme(use -f to force removal)shenweiyan@iZ7xv4bbjwm8qgx8m72z68Z 16:30:18 /home/shenweiyan/HugoSource$ rm -rf themes/shenweiyan@iZ7xv4bbjwm8qgx8m72z68Z 16:30:31 /home/shenweiyan/HugoSource$ git submodule add https://github.com/shenweiyan/ICS-Hugo-Theme.git themes/ICS-Hugo-Theme'themes/ICS-Hugo-Theme' already exists in the indexshenweiyan@iZ7xv4bbjwm8qgx8m72z68Z 16:30:34 /home/shenweiyan/HugoSource$ lsconfig.toml content resourcesshenweiyan@iZ7xv4bbjwm8qgx8m72z68Z 16:30:40 /home/shenweiyan/HugoSource$ git rm --cached themes/ICS-Hugo-Theme -frm 'themes/ICS-Hugo-Theme'shenweiyan@iZ7xv4bbjwm8qgx8m72z68Z 16:30:40 /home/shenweiyan/HugoSource$ git submodule add https://github.com/shenweiyan/ICS-Hugo-Theme.git themes/ICS-Hugo-ThemeCloning into '/data/HugoSource/themes/ICS-Hugo-Theme'...
remote:Enumeratingobjects:8344,done.
remote:Countingobjects:100%(572/572),done.
remote:Compressingobjects:100%(292/292),done.
remote:Total8344(delta307),reused396(delta177),pack-reused7772
Receivingobjects:100%(8344/8344),9.45MiB|7.62MiB/s,done.
Resolvingdeltas:100%(4358/4358),done.