It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Soruce Tree Add New File

Nirav Shah Aug 08, 2012

Hi ,

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



1 answer

0 votes
Steve Streeting Aug 08, 2012

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.

Nirav Shah Aug 08, 2012

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.

Steve Streeting Aug 09, 2012

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 Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Sourcetree

Sourcetree for Windows - CVE-2019-11582 - Remote Code Execution vulnerability

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...

465 views 0 9
Read article

Community Events

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

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you