Changing git submodule repo after you started editing it

I had to make some changes to a repo to dockerize it. Initially the submodule pointed at the original repo, so I went back and switched it to a fork and branch, so I could make pull requests as necessary.

bash-4.4$ git config --file=.gitmodules -l
git config --file=.gitmodules -l
submodule.indieauth.com.path=indieauth/indieauth.com
submodule.indieauth.com.url=https://github.com/aaronpk/IndieAuth.com.git

bash-4.4$ git config --file=.gitmodules submodule.indieauth.com.url https://github.com/dougbeal/IndieAuth.com.git
git config --file=.gitmodules submodule.indieauth.com.url https://github.com/dougbeal/IndieAuth.com.git
bash-4.4$ git config --file=.gitmodules submodule.indieauth.com.branch docker-fixes
git config --file=.gitmodules submodule.indieauth.com.branch docker-fixes

bash-4.4$ git submodule sync
git submodule sync
Synchronizing submodule url for 'indieauth/indieauth.com'

bash-4.4$ git submodule update --init --recursive --remote
git submodule update --init --recursive --remote
From https://github.com/dougbeal/IndieAuth.com
 * [new branch]      docker-fixes -> origin/docker-fixes
bash-4.4$ git config --file=.gitmodules -l
git config --file=.gitmodules -l
submodule.indieauth.com.path=indieauth/indieauth.com
submodule.indieauth.com.url=https://github.com/dougbeal/IndieAuth.com.git
submodule.indieauth.com.branch=docker-fixes

bash-4.4$ 
reposted Changing remote repository for a git submodule – Stack Overflow

These commands will do the work on command prompt without altering any files on local repository

git config --file=.gitmodules submodule.Submod.url https://github.com/username/ABC.git
git config --file=.gitmodules submodule.Submod.branch Development
git submodule sync
git submodule update --init --recursive --remote
Please look at the blog for screenshots: Changing GIT submodules URL/Branch to other URL/branch of same repository

Why Categorize when you have Post Kinds and Tags – Disabling categories in WordPress

Consider putting all your changes in a child theme. Look at my child theme as an example.

add to functions.php in your theme:

function dougbeal_unregister_categories() {
    register_taxonomy( 'category', array() );
}
add_action( 'init', 'dougbeal_unregister_categories' );
unregister_widget( 'WP_Widget_Categories' );

https://wordpress.stackexchange.com/questions/120418/completely-disable-categories
http://stackoverflow.com/questions/4249694/how-do-i-remove-a-taxonomy-from-wordpress