Soruce Tree Add New File

Hi ,

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

Thanks

Nirav

1 answer

This widget could not be displayed.

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 Sign up to answer
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

883 views 2 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