Answers for "git clean all submodules on branch switch"

0

git clean all submodules on branch switch

# Be careful it will delete all untracked files, reset all stagated files
# and will remove all submodule folders
git reset --hard
git checkout gh-pages
git clean -xffd
# Optional restoration of submodules content
git submodule update --init --recursive
Posted by: Guest on May-14-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language