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.
Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs