I have several files that I would like to delete from the repository (see photo attached below). I want to be able to remove them from my repository and rename the repository as well. I have to go back and choose another destination path to my pc's files. Thank you in advance.
Hi Ian! What do you mean by renaming the repository: do you want to change the repository directory name, the name displayed in Sourcetree or the name of the remote repository? Each requires different steps to rename:
To delete unstaged files, you can do it from the command line using
git checkout -- <file>
Hope this helps!
Hi Ian, you want to add a text file to the repository? You can do that same as you add the other files, you can just create a text file within the repository folder. I'm not sure about using a text file to keep track of the changes, though, I'd personally add meaningful descriptions to the commits to know what changed every time.
Hope that helps!
Either you can destroy the files on disk, or ignore them.
Your versionning tool HAVE to let you choose how to handles files, if it detects a new one (the ? icon means new file).
If those files always re-appear, probably because of an automated system like a build tool, you should ignore them with a pattern (like "bin\*" for example), because they will ALWAYS re-appear and you dont want to clean them by hand.
Automatically destroying those kind of files is the purview of your build environment, not your code versionning system.
A vulnerability has been published today in regards to Sourcetree for Windows. The goal of this article is to give you a summary of information we have gathered from Atlassian Community as a st...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event