Soruce Tree Add New File

Hi ,

I would like to add new image file. How can I add.



1 answer

One way is to select the file in the File Status view (Cmd-1) and click the 'Add' button on the toolbar. The file will then be added with the next commit.

Hi Steve ,

Thank you very much.

Actually I have added one image in my img folder and it seems that image is not visible in Working Copy in File Status. How can I add it ? Not sure but If I change any file then its visible but what about newly added files ? Thank you once again.

If the file isn't showing there are 2 possible reasons:

  1. It's already added and hasn't been modified (Clean), or
  2. It's been ignored by either your global ignore file, or the local one for this repository

If it's the former, changing the filter at the top of the file list from 'Show Pending' to 'Show Clean' will display it. If it's the latter, then changing the filter to 'Show Ignored' will display it.

If it shows up under 'Show Ignored', you can add it from this list. If you want to avoid the problem in future, you need to find the incorrect entry in your ignore files. The global one will be accessible from Preferences > Git (or Mercurial depending on what system this is). The local one will be inside your repository, called .gitignore or .hgignore. Check these files for entries which match your file and remove them.

Suggest an answer

Log in or Join to answer
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

262 views 0 3
Read article

Atlassian User Groups

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!

Find my local user group

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

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot