Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • TortoiseGit TortoiseGit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 380
    • Issues 380
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 16
    • Merge requests 16
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • TortoiseGitTortoiseGit
  • TortoiseGitTortoiseGit
  • Issues
  • #3107
Closed
Open
Issue created Nov 08, 2017 by Philipp Wiesner@pwiesnerlp

Remove orphaned submodule - clean -f -f

What steps will reproduce the problem?

  1. Checkout a branch that has a submodule named "ModuleA"
  2. Switch to a branch that does not have a submodule "ModuleA"

What is the expected output? What do you see instead?

The process leaves orphaned submodules that can't be removed by "Clean Up", as git requires two -f switches to remove subdirectories that are a git repo of their own. I can't figure out how to remove these orphans from my tree with TortoiseGit.

Git will refuse to delete directories with .git sub directory or file unless a second -f is given.

What version of TortoiseGit and Git are you using? On what operating system?

TortoiseGit 2.5.0.0 git 1.9.5.msysgit.0 Windows 7 x64 build 7601

Please provide any additional information below.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking