My local branches in SourceTree seem to be out of sync. When I check out a branch from the origin some files are missing. So I would like to delete all local branches so that sourctree(git) does not think there any local files and will copy all files from origin repository. I can not delete the local branch that is is active (option is greyed out). Is there any way to totally delete the local branches so I can start cleanly and get a full check out?
What about deleting the local repository and re-cloning it from the remote server? That would wipe out the local branches and let you have a clean copy of the repository. This would delete any local commits you've made that have not been pushed to the server.
If you remove the bookmark in SourceTree, you'll also being given the option to remove it from the disk, which will wipe it out.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.