Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 21:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×I want to change the path of a project in SourceTree. All files in my user directory are accidentally in this project, and I just want to focus on a few files. How can I do that? I don't want to toss it in the trash, because then I will be tossing all my folders there! Thanks!
I still only halfway understand what might have happened, I think you did a git init on your user folder.
Assuming this, you should see a hidden folder called ".git" under your user folder and this is what you have to do:
this helped me, thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Mac or PC?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It's Git, and yes, it's a repository. I accidentally made the path my user path (which means everything under the sun is in that repository. I just want to be able to connect it to a folder in a local development install like I had for my others. I'm still fairly new to SourceTree, so I accidentally created the new repository in bookmarks without dragging the folder in question into the bookmarks area. That resulted in the creation of a repository with a path to my user directory. I want to undo that and connect to the right area. Does that make sense? Thanks, by the way, for reaching out!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are we talking about Git or Mercurial? What do you mean by "project"? Is it a repository?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I created a project, and now I have a ton of files that are untracked in it. I only wanted a couple of files in there, but because I created the wrong path, I ended up with all these files. I haven't done anything in the project. I just want to get rid of this path and just add the couple of files I want. However, since there are so many untracked files in there, it's difficult to do anything because now SourceTree is very slow. Hope this explanation helps clarify the issue. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.