youngmon/atlassian-qna huggingface dataset:
What does the remove menu do for unstaged files?
Asked by mretondo:

I have a bunch of file with purple icon and question mark in the unstaged area. If I right click I see a Remove command but don't know what that will do. The file names are jiberish. I don't need these files. There just clogging up the unstaged area.


Answers:
author: Mark_Skidmore
body: By experimenting with the right-click/Remove action, I noticed if I do this on a file, the file is not only removed from the Staged files pane but also from the underlying directory structure.


author: Manju
body: It does exactly what you need in you case i.e., "Deletes the file/files you've selected".

comments: author: john2525
body: Is there a Sourcetree manual where I can find this kind of info w/o having to ask someone? I see your answer is in quotes. Does that mean you copied it from a document? Is that document available to the public?

I searched for "remove" in your KB and did not find anything there about it.

I am looking for the command line equivalent to "git checkout -- \<file\>" to discard changes to an unstaged file. I definitely do not want to delete the file.

thanks.


author: Manju
body: "Discard File" would discard all changes from the current file and restore it to prestige state from its previous commit.

You can alternately go to Repository -\> Reset menu item and select a bunch of files to discard if you want to do multiple at a time.

If you want to do this on a branch for all the files modified, go to Repository -\> Reset menu Reset All tab and it discards all local changes.

Our documentation page can be found here - <https://confluence.atlassian.com/get-started-with-sourcetree?_ga=2.64886246.835827532.1530148803-1178943601.1520311947>

I admit that we do not have everything documented in here given our team size. We are trying to improve documentation over time and in the meanwhile, happy to help you here with any question you might have.
Issue with SSH Configuration Key
Asked by kennetham:

The latest version of SourceTree has issues with SSH keys. I have already uploaded my SSH Key onto Github and did the necessary settings. After the update, I am not able to pull using SSH. Under Accounts, SSH key wasn't found. Is there any way I can fix this?


Answers:
author: Manju
body: Can you specify the version and build number of SourceTree you are using and on what OS? Please check if the ssh the ssh key is added to the agent. You can run below command to check the agent,

```
ssh-add -l
```

If it does not list your key, add them manually using the below command

```
ssh-add ~/.ssh/id_rsa
```

comments: author: kennetham
body: I am using SourceTree Version 2.4 (96). Previously my developer also had issues with the latest update. Yes I have already ssh-add but it is unable to recognize any keys in it.

Please advise.


author: kennetham
body: I have added, but it seems like it is always disappearing. ssh-add -l says "The agent has no identities." which I have already done so yesterday.


author: CharlieC
body: I've hit the same problem switching from https to ssh. I've added my private ssh to the agent but SourceTree (Version 2.4 (96)) can't find it. This is on MacOS 10.12.3 (16D32)


author: Manju
body: SourceTree 2.4 doesn't recognize keys generated manually (not generated via SourceTree). If you are concerned about seeing a warning which says account not configured but you have ssh keys you've generated successfully, you can ignore the warning. We are working on recognizing existing keys for an upcoming release.


author: Lev Reznikov
body: I have the same issue with v2.4.1 (97) on macOS Sierra 10.12.3 (16D32).

What is the planned availability date of this upcoming release that recognizes existing keys?

Thank you in advance for the information.
install error occured
Asked by reiko ohba:

I've got a SourceTreeSetup-1.10.15.4.exe , and executed this file then error occurd.

ERROR \[2017-02-03 17:41:17,210\] \[1\] \[SourceTree.App\] \[OnStartup\] - Failed to start System.NullReferenceException: ??????????????? ????????????????? ?? SourceTree.Configuration.UninstallerPreFlightCheck.FindVersionsRegistry() ?? SourceTree.Configuration.UninstallerPreFlightCheck.Run() ?? SourceTree.AppRoot.RunPreFlightChecks() ?? SourceTree.AppRoot.OnStartup(StartupEventArgs e) ?? SourceTree.App.OnStartup(StartupEventArgs e)


Answers:
author: Andrew Douglas
body: Seems to be a known bug.  

I found this:  
<https://jira.atlassian.com/browse/SRCTREEWIN-6858>


Tags: language-ja
Difficulties connecting SourceTree to system mercurial
Asked by Nick Alexeev:

I've installed the current version of Mercurial (4.0.2) onto my Windows 7 computer. I've installed the current version of SourceTree. But I have no luck enabling Mercurial support.

When I go to Options \> Mercurial and click Enable Mercurial Support, SourceTree can't find the mercurial installation. I get a dialog with a list of options. I chose the option to locate the Mercurial installation manually, and point to the `C:\Program Files\Mercurial\hg.exe `. Mercurial comes back with the same dialog. It doesn't like my choice, apparently.

What might I be doing wrong? What am I missing? What is missing?


Answers:
author: Christian Schmidt
body: I've got the same Problem with Mercurial 4.1.2 on Windows 7.

I'm currently using SourceTree 2.0.19.1.


author: SteveEllwoodNLC
body: I'm getting a similar issue but I can't even point to my mercurial installation, when I try to choose the option I just get the message back saying that it can't be found with no option to indicate where the installation is. So I chose no mercurial. When I try to enable mercurial it goes back to the same options. In the end the only option appears to be to download an embedded mercurial


Tags: mercurial
Constant TCP reconnect every few seconds
Asked by okonomiyonda:

constant_reconnect.png

I am getting TCP reconnect messages every few seconds with SourceTree open. Destination is the git repo I use for work, and the problem is there is a firewall rule that blocks an IP address for 10 minutes if there are too many requests from that IP within one minute. I'm not 100% sure this TCP reconnect is what is tripping the limit, but I'm trying to rule out all possible causes.

So, is there some way in SourceTree to disable the constant TCP reconnect?  
[](https://community.atlassian.com/t5/Sourcetree-questions/Constant-TCP-reconnect-every-few-seconds/qaq-p/222766?attachment-id=682){#link_11723b8a4207b3}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/6536/1/constant_reconnect.png){#display_11723b8a4207b3_0}


Answers:
author: Seth
body: I ran into what sounds like the same situation a few years back (have since moved the repo to github). I didn't have this amount of technical detail, so this should probably be reported at jira.atlassian.com.

I was able to workaround the issue to prevent getting blocked by the firewall by going into the options and disabling the automatic fetch.
how can I setup multiple BitBucket accounts in sourceTree?
Asked by Eric Liprandi:

This seems pretty trivial. I have both a personal and a professional account for BitBucket.

Is there a *simple* way for SourceTree to handle that? I tried adding both my accounts, letting it generate the keys, update the `.ssh/config` file, etc. But when I select a repository in the list, it populates the url like `ssh://git@bitbucket.org/myuser/myproject.git`  
Tfhis does not work because you need a different `hostname` for ssh to pick a different key... I have followed the instructions from Atlassian [here](https://confluence.atlassian.com/bitbucket/configure-multiple-ssh-identities-for-gitbash-mac-osx-linux-271943168.html) to setup multiple identities. It has been working for months and I was hoping that the new SourceTree (2.4 (96)) would support this.

Am I missing something or is this just not supported?


Answers:
author: Juan Velasquez
body: Same problem here. Any ideas?

comments: author: Gayan Hewage
body: this would help

<https://medium.com/avocoders/github-and-bitbucket-accounts-in-a-same-pc-5f8c67fd89d2>


Tags: git

ssh
Strange behaviour with File Status/Working copy since last update
Asked by Russell Trafford:

The recent update to SourceTree has changed the way the File Status/Working Copy section works.

Initially, I thought no longer do you get the split panel between stage and unstaged changes. It appeared that there were just tick boxes to relate to staged/unstaged. This makes it very hard when trying to visualise the changes.

HOWEVER, then I noticed that if I choose some random lines in one of the files, and I said "Stage Selected Lines" then magically the split panel returned and now I have my staged files at the top, and unstaged files at the bottom.

What? So did anything change? Or did I miss a config setting somewhere? Seems very odd.


Answers:
author: Seth
body: Mac or Windows?
How to extract MSI from SourceTree 1.10.18.1.exe without Proxy?
Asked by Richard Bayer:

Hi,

I don't have admin right on my workstation, so I cannot run the regular exe installer.

Up to now, I simply extracted the MSI files from the exe and installed it manually, which worked perfectly.

Now with version 1.10.18.1, when I run "SourceTreeSetup-1.10.18.1.exe /extract" it asks me for a user / password for the Proxy Server. Whatever I enter there, it always comes back with "Authentication Failed". I'm 100% sure there is no typo. It simply does not work.

I wonder why it needs Internet access anyway? For what?

So how can I extract the MSI files or install SourceTree without admin rights?

Rich


Answers:
author: Tyler Retelle
body: I'm in the same boat as you.

The reason the /extract doesn't work is because Atlassian changed installers on us (again) so its an invalid switch.

From what I can tell the executable download from Atlassian now uses the craptasic GitHub Squirrel installer, which is a total fail for Windows enterprise environments as it is a ClickOnce design with no MSI. It runs as the users context which is a non starter in environments like ours that have whitelisting software.

The MSI just worked. Can we get that back or get an alternative?
Add working copy in SourceTree error: "this is not a valid working copy path"
Asked by Ethan O'Sullivan:

I have [SourceTree](https://www.sourcetreeapp.com/) up and running on three laptops. I already have a local copy of my repo that I pulled from my GitHub account.

When I try to *add a working copy* of the same repo to my other laptop on SourceTree, I get this error:
> This is not a valid working copy path.

What am I doing wrong?


Answers:
author: Ethan O'Sullivan
body: > 1) Do you already have the repository on this machine?

Yes, I have my local repos on the cloud which sync the files between my machines.
> 2) (This may be redundant) If so, does that repository have a .git directory (might be hidden - make sure Windows is displaying hidden folders)?

Yes, the *.git* directory exists. Like I said in #1, these local repo copies sync to my cloud and all of my laptops.

I had this working before on previous versions of SourceTree, so I believe that this issue could be related to the latest update.


author: Seth
body: Clarification time! For the sake of this discussion, I'm going to completely ignore the working laptops, all questions are about the one with the problem.

1) Do you already have the repository on this machine?

2) (This may be redundant) If so, does that repository have a .git directory (might be hidden - make sure Windows is displaying hidden folders)?


Tags: github

repository

windows
while registering on source tree ALWAYS gives error as "source was not able to contact registration server"
Asked by Vishal Arthamwar:

ST.PNG  
[](https://community.atlassian.com/t5/Sourcetree-questions/while-registering-on-source-tree-ALWAYS-gives-error-as-quot/qaq-p/314774?attachment-id=8804){#link_1168800ff329f7}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/9592/1/ST.PNG){#display_1168800ff329f7_0}


Answers:
author: Vishal Arthamwar
body: Also tried through MyAtlassain link and ended up with creating account only
View added files and non-added files separately
Asked by adamscoble:

Hi there,

I've just updated SourceTree, and it seems on the 'File status' tab now, added files and non-added files are shown together, with checks indicated whether they're added or not.

Is it possible to revert to the old style? I was a big fan of the two separate windows.


Answers:
author: adamscoble
body: For anyone who stumbles upon this, there is a small hamburger menu button at the top of the 'File Status' window. Press this and select 'Split view staging' and voil?!


author: adamscoble
body: I have reverted to 2.3.2, as in this new version I had issues with my account credentials actually working.
Is there a New Repository->"Scan Directory..." feature in the Souretree Windows client (like the feature available in the Mac OS client)?
Asked by Enrico Ladendorf:

Is there a New Repository-\>"Scan Directory..." feature in the Souretree Windows client? This feature is available in the Mac OS client, but it doesn't appear to be available in the Windows client.


Answers:
author: robmerrick181
body: I'm not aware of a Scan Directory feature for the Windows client, but there's a work-around that I use to get around this issue. Open a new tab, then select the "All Repos" folder. From here, you can drag and drop multiple git folders from a File Explorer window into the bookmarks region. When you have all of the repo folders that you want added as bookmarks, hit the Refresh button to make sure that Sourcetree is able to successfully link to each folder location. It's not as good as an automatic feature, but it does speed up the process from having to manually add in each repository one by one.


author: Enrico Ladendorf
body: The "Scan Directory" feature scans the chosen directory for multiple instances git repositories to add to Sourcetree. This provides the convenience of not having to add each repo individually to Sourcetree. The feature appears to be missing from the Windows client.


author: Seth
body: I don't know, what does "Scan Directory" do, specifically?
SourceTree 2.4 does not store GitHub password in keychain
Asked by Laurens:

Since installing SourceTree 2.4 I've had a number of authentication issues (with GitHub). Only one of the possible ways to connect with a GitHub remote actually "worked":

* I create a personal access token on GitHub
* I pull from my GitHub remote
* I am asked for username and password (= personal access token)
* This prompt is shown again, and I enter my credentials a second time, after which the pull succeeds

Screen Shot 2017-01-23 at 14.43.30.png

Ticking the checkbox to store my password in Keychain doesn't do anything: I am shown this prompt every time, always twice. From checking the verbose output, I notice it's one time for the fetch, one time for the pull. So my password just isn't saved to Keychain.

Screen Shot 2017-01-23 at 14.51.02.png

I tried entering my username and password / access token after doing a git pull in Terminal, which used to fix this kind of problem in previous versions, but not now.

I also experienced these problems with auth in 2.4:

* <https://answers.atlassian.com/questions/45413808>
* <https://answers.atlassian.com/questions/45945653>

So in order to continue working, I removed 2.4 and installed 2.3.2 again.

[](https://community.atlassian.com/t5/Sourcetree-questions/SourceTree-2-4-does-not-store-GitHub-password-in-keychain/qaq-p/312576?attachment-id=12190){#link_1168809a482d85}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/9536/1/Screen%20Shot%202017-01-23%20at%2014.43.30.png){#display_1168809a482d85_0}  
[](https://community.atlassian.com/t5/Sourcetree-questions/SourceTree-2-4-does-not-store-GitHub-password-in-keychain/qaq-p/312576?attachment-id=12191){#link_1168809a482d85_0}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/9536/2/Screen%20Shot%202017-01-23%20at%2014.51.02.png){#display_1168809a482d85_2}


Answers:
author: Richard Forsythe
body: See also...

<https://answers.atlassian.com/questions/45945653>
Git LFS in Bitbucket with Sourcetree
Asked by JoshuaNW:

Hi,   

So it should be said that I am ultra noob, I am more of an artist than a programmer and so forth. I am currently setting up a game design project in Bitbucket, we usually use Bitbucket for system based stuff with the limited assets we need for testing. The current project we need to move over is way larger than that, around 4.2gb with the gitignore in placce, and around 6gb without it.   

So I started off by creating a new repo, got it all setup file wise and such. Then proceeded to move the files I need into that new folder, I setup the git ignore accordingly and then proceeded to setup git lfs via: Repository \> Git LFS \> Initialize Repository after this i went through the steps of installing it and then tracking the files I wanted to which are: .fbx .obj .png .jpeg .asset. After this was setup and I could see the git attribuites file ready to commit I then did the very first commit selecting every file and typing in a message as usual and then hitting commit. This took a while as it was 19k items. Everything worked fine, and I proceeded to push it, this also went fine.  

But my Git LFS is empty on bitbucket, and the normal storage is 1.2gb full only having files that I didnt mark for git lfs.   

So currently I still have all my files locally, but the required files that I tracked with git lfs is not on bitbucket.   

Sorry for the long explanation!


Answers:
author: messiem
body: Probably not useful anymore since it's been a while, but since I just ran into that issue and it took me a while to resolve it, in case it can solve some time for someone else...

For me I had to issue a "git lfs push origin master" just prior to "git push". I didn't see any mention of this in the documentation, but without that command my files never made it into bitbucket.


author: JoshuaNW
body: Bump?


Tags: bitbucket

git-lfs
[Source Tree] Cannot install on an external drive
Asked by Anne Schmidt:

Hi,

I had installed ST on the C drive of my computer ; I deinstalled it the best I could and now I cannot install it on and external drive. I'm getting the error message saying that ST is already installed, then the installation starts but I cannot choose where to install it.

How can I fix that?

Thank you.


Answers:
author: Anne Schmidt
body: All right, I eventually managed to install SourceTree properly by using the setup for version 1.9. I found it on this blog: <https://blog.sourcetreeapp.com/2016/12/05/sourcetree-for-windows-1-9-9-released/>

I've been able to install where I wanted.

Hope this helps.


Tags: windows
SourceTree "fatal: Authentication failed for..."
Asked by Jay Burgess:

Mac OSX El Capitan. SourceTree 2.4. I cloned some remote repos a few couple of weeks ago, and have been pulling my team's updates in SourceTree with no issue.

Unfortunately, I had to change my password on the remote system over the weekend, and now when I pull from the SourceTree toolbar, I get "fatal: Authentication failed for..." errors.

I found that if I open a Terminal window for a given repo, and do "pull \<repoName\>", it asks for my new password once, and then works from the Terminal from that point on. However, it still continues to fail from within SourceTree, even after re-starting SourceTree.

I cannot seem to figure out how to make SourceTree recognize my newly-entered password from the Terminal pull, or forget my previous one and ask me for the new one. What am I missing?


Answers:
author: Jay Burgess
body: I just answered my own question. There is a SourceTree Application password stored in the login keychain. Deleting that caused SourceTree to prompt me for the new password. Not sure how I missed it the first time I searched.

comments: author: Ralph Croly
body: thanks! this was driving me mad, and I hadnt even created a new password! not the most experienced mac user, thanks!


author: irinatari
body: How do you delete that?


author: drloading
body: this helped. thank you


author: MPeloquin
body: To delete it

* cmd+space and type "KeyChain Access",
* You should find a key with the name like "gitlab.\*.com Access Key for user". You can order by date modified to find it more easily.
* Right click and delete.


author: Mayank Jain
body: Awesome!! it worked. Thanks a ton


author: Arildo Junior
body: Finally, thank you.


author: seuntaylor
body: Yes! That worked for me! I knew I was missing something.


author: ChaseBowman
body: How about for Windows?


author: aayushkuma
body: Thank You so much !


author: Md Rashidul Hasan
body: Thank you so much it worked for me.
How to fix this GitFlow error
Asked by S?crates Medina:

I just installed sourcetree on a new PC and I have cloned my Repository, but when I try to use the GitFlow button I am getting this error:

sh.exe "C:\\Users\\MyUserName\\AppData\\Local\\Atlassian\\SourceTree\\gitflow_local\\gitflow\\git-flow" init -d  
/usr/bin/sh: "C:\\Users\\MyUserName\\AppData\\Local\\Atlassian\\SourceTree\\gitflow_local\\gitflow\\git-flow": No such file or directory  
Completed with errors, see above.

Any Idea how to fix this?


Answers:
author: Seth
body: I see, the special character is in your Username. That could definitely be the problem. Git runs in a MinGW terminal, which is a linux emulator, and it may handle special characters like that differently than its windows environment. You might install your own copy of Git in another folder (C:\\Program Files or something), and set SourceTree to use System Git instead.

comments: author: S?crates Medina
body: I am going to try that but I think I already did and it kept looking for the git on the users folder


author: Kenneth ?sterberg
body: I had the same problem, with a "?"-character in the folder in "Users" that caused a "No such file or directory" error from sh.exe when executing git-flow.

I used Windows Process Monitor (<https://docs.microsoft.com/en-us/sysinternals/downloads/procmon>), filtering events by a rule "Process Name contains sh.exe" to find where sh.exe is looking for git-flow.

I found that it's looking under my git folder C:\\git\\projname, appending the full path to git-flow under it, but using some invalid characters in the path:

C:\\git\\projname\\?C?\\Users\\Kenneth ?sterberg\\AppData\\Local\\Atlassian\\SourceTree\\gitflow_local\\git-flow?

I created the folder structure under my git folder, and added the folder to my ".gitignore" file like:

/?C?/Users/Kenneth ?sterberg/AppData/Local/Atlassian/SourceTree/gitflow_local/gitflow

I copied the files from C:\\Users\\Kenneth ?sterberg\\AppData\\Local\\Atlassian\\SourceTree\\gitflow_local\\gitflow to the folder structure.

After this I was able to use Git Flow from the SourceTree GUI.


author: S?crates Medina
body: When I try to clone my repository I get this error:

Checking out files: 100% (1855/1855), done.  
/usr/bin/sh: "C:\\Users\\S?crates Medina\\AppData\\Local\\Atlassian\\SourceTree\\git_local\\mingw32/libexec/git-core\\git-submodule": No such file or directory  
fatal: 'submodule' appears to be a git command, but we were not  
able to execute it. Maybe git-submodule is broken?

Completed with errors, see above.


author: S?crates Medina
body: I am using embedded Git, My user folder is called "S?crates Medina" I don't know if the special character may be causing the problem.

If I browse to that folder I can see all the files there.

Any ideas?


author: Seth
body: Are you using embedded or system git?

Tools \> Options \> Git - look in the Git Version box.


Tags: windows
Confluence site down
Asked by Vanessa Berry:

How long will the Confluence site be down.

Thanks

Vanessa


Answers:
author: Dan Breyen
body: Hi Vanessa, not sure if you're aware of the Atlassian status page. You can get to it here: [Atlassian Status](https://status.atlassian.com/)

If there is an outage, you can subscribe to get updates on a particular system.

Hope that helps.


Tags: cloud

confluence-cloud