youngmon/atlassian-qna huggingface dataset:
Windows SourceTree Working Copy URL Shows as Not a Valid Working Copy Path
Asked by Benjamin Tuttle:

I am getting an issue pulling a working copy from bitbucket to my windows sourcetree install. When I put the URL in, I am able to clone the repository just fine, and it verifies it as a valid copy. However, when I try to pull down a working copy, it comes back with "This is not a valid working copy path."

Is there something I'm missing?


Answers:
author: stevestreeting
body: When you say 'Pull down a working copy', do you mean you're using the second tab labelled 'Working Copy'? This tab is used to point SourceTree at an existing clone you already have on your disk. If you're cloning, you don't need to use this tab because the act of cloning creates a working copy as well, which SourceTree then bookmarks. You only need to use the Working Copy tab if you've cloned outside of SourceTree and need to bring that existing clone (and working copy) in. That second tab will only accept local paths which point to an existing valid cloned working copy.

comments: author: Benjamin Tuttle
body: That's exactly what I needed to know! Thank you!!
How to get a list of commits from SourceTree
Asked by Zteve:

I am viewing a branch in the log view and I have highlighted several commits in the 'Current Branch' view. How do I capture a list of all the commits selected?

Copy/Cut to the clipboard doesn't appear to get text (nothing in my editor when I paste it), and I can't see any option to generate a file or a view of this list of selected commits.

I would like a list with the commit id, the branch it was on, and the commit message at the least.

This would be handy when generating release notes, or reports.


Answers:
author: Zteve
body: Have raised feature [SRCTREE-1656 - Ability to copy the list of selected commits in the log view to the clipboard](https://jira.atlassian.com/browse/SRCTREE-1656).


author: AmberF
body: At present, SourceTree doesn't provide a way to copy \& paste the commit text, nor is there a way to export a list. I suggest filing a feature request in our online issue tracker at [jira.atlassian.com](https://jira.atlassian.com/secure/Dashboard.jspa) - we take all user feedback and suggestions into consideration when determining our product roadmaps.


author: Sameer Deshmukh
body: We definitely need this feature as many of our members are working late nights and weekends and we want to create visibility around this to share with upper mgmt. This feature will be very helpful in that regard

comments: author: Sergey Ok
body: Still need it badly


author: jaredjacob667
body: I found this, Its not exactly from sourcetree but you can log out specific commit messages and such with git itself. See link here <https://git-scm.com/book/en/v2/Git-Basics-Viewing-the-Commit-History>. You could then pipe that output to a .txt file or something. Its a workaround if this feature never comes about.

For me this command worked once in the directory. This gave the commit hash with its commit message.

git log --pretty=oneline


author: Dustin Gaudet
body: To anyone coming here looking for a solution - I've just submitted a feature request over JIRA (the link was posted above, but it doesn't look like anyone wanted the feature enough to actually submit a request).


author: A P
body: Another vote for this feature from me... We also need to be able to report changes to non-developers in a periodic report, and either need to paste the commit messages into both places on each commit (to keep a running log), or copy and paste via the web interface one-by-one to update (or just to verify the log file completeness). Either way, it is a time consuming process that could be made so much easier if we could export this information, or even see it all at once via the web interface to copy and paste it just once.
Sourcetree doesn't pick up private key?
Asked by Alexander Schmidt:

Hi,

i'm trying to add an exisiting Mercurical Repo to Sourcetree:

![Clone Repository Screen](http://cl.ly/image/1F283U3o2R2V/Screen%20Shot%202013-05-17%20at%2011.48.16.png)

But Sourcetree immediately prompts me to enter a password which would be added to the keychain.

![Keychain Password required](http://cl.ly/image/0y2l153z351x/Screen%20Shot%202013-05-17%20at%2011.53.04.png)

How can I tell it to use the private key located in \~/.ssh/id_rsa ?


Answers:
author: Alexander Schmidt
body: No my key is already registered on the server.

The Problem was my local key. SSH told me on the command line:

```
Permissions 0644 for '/Users/ashiso/.ssh/id_rsa' are too open.It is required that your private key files are NOT accessible by others.This private key will be ignored.
```

So I changed the permissions:

```
chmod 700 ~/.ssh/id_rsa
```

.. and SSH stopped complaining. After that I cloned the repo from the command line, which worked just fine

```
hg clone ssh://hg@hg.anonymox.net/client
```

And then added the working repo to Sourcetree. Anyway thanks for the help!

comments: author: KieranA
body: Glad you got it working, thanks for telling us what the problem was, I'll make sure I use your advice if this problem was to crop up again. Could you mark your response as the answer when you get the chance (and I think you have to wait a while until you can mark it as the answer).

Cheers!


author: KieranA
body: Hi Alexander,

This is most likely because the server rejected your key, which is also why SourceTree is reporting your URL as invalid. Make sure your server has your public key and it's the correct one.

If you need any more help on this one, do let us know.

Hope that's of help
SourceTree GUI Spanish Tranlation
Asked by ikercelorrio:

hi. i am a newcomer to sourcetree and my team is also newcomer to git. They come from other vcs and with the gui translated to spanish.These will be very valuable if the Gui could be translated to spanishThank you very much


Answers:
author: LucasA
body: Hello there,

I believe that could be a very nice idea. We have customers in many different countries and many of them speak a different language than english.

I've raised a inprovement request: <https://jira.atlassian.com/browse/SRCTREE-1620> and <https://jira.atlassian.com/browse/SRCTREEWIN-564> (both are the same, however are two different projects, one for Windows and other for the Mac).

Please vote on these requests and add your own comments there.

Cheers,

Lucas Lima

Atlassian Support
Checking out a single branch
Asked by Eduardo Mello:

I have on my projects one branch only for Graphics (graphics) and one branch for Development (master). I'd like to know if it's possible to choose, when cloning, which branch I want to clone. I don't want people who will work on graphics to get the master branch to prevent confusion. I know you can do it with git CLI: git clone user@git-server:project_name.git -b branch_name /some/folder.

**Is there anyway to make this on SourceTree?**


Answers:
author: stevestreeting
body: If you're on the Mac, yes - click the Advanced checkbox.

On Windows, it's not there yet, here's the tracking issue: <https://jira.atlassian.com/browse/SRCTREEWIN-532> - I'm going to try to get this out next week since a number of people have asked for it recently.
How to Backup SourceTree
Asked by cyberpunkstudio:

I am looking to format my Mac and reinstall everything including the new Mountain Lion. I currently have SourceTree on version 1.6.0.1. I have over a hundred repos setup. Rather than cloning all my repos and losing all my preferences and logins etc. Is there a way to backup my entire SourceTree including all my repos, settings, logins etc. So when I have reinstalled my OS I can just setup SourceTree as it was?


Answers:
author: KieranA
body: Hi Steven,

You'll want to backup \~/Library/Application Support/SourceTree/browser.plist and \~/Library/Application Support/SourceTree/hostingservices.plist firstly. This will restore the bookmarks and the hosting services in your hosting list in SourceTree.

Secondly, you'll want to backup all your repositories and restore them to the *exact* same location afterwards. Even the username of the user needs to be the same as we use absolute paths. For example if it was /Users/Steven/Documents/Repositories/ and there was a load of repositories in there, then that's where they'll need to go afterwards.

If you use SSH keys then you'd need to the contents of \~/.ssh/ also.

For things in the Keychain, you can export/import keys but not passwords. Just hit Cmd+Space and type "Keychain Access" and take a look at what you might need. For HTTPS you may need to re-enter and remember passwords for them to be put back in the keychain when you restore everything.

Hope that helps

comments: author: fnkr
body: And on Windows?


author: stevestreeting
body: On Windows the data you want is in %USERPROFILE%\\AppData\\Local\\Atlassian\\SourceTree


author: Chris Cinelli
body: What is the answer for version 1.6.4.1 and also for 1.9? I have some files in the \~/Library/Application Support/SourceTree but it looks like they haven't be updated for a while.


Tags: backup
How to Merge content from multiple branches into a single branch in source tree?
Asked by shouren dalvi:

I have 5 branches in sourcetree which has various files in it

for eg- blogs-b2,blogs-log,frontaccounting,crm,contentmanagement

I want to merge the contents of these branches into a single branch named Simplescripts.


Answers:
author: stevestreeting
body: 1. Create the Simplescripts branch if it doesn't already exist, anc check it out (there's an auto-checked box in the create branch dialog that will do that for you)
2. Right click on one of your branches eg blogs-b2, select 'Merge' \& confirm
3. Repeat 2 for each of those other branches

If you have any conflicts after 2. you can resolve them by right-clicking the file, selecting Resolve Conflicts and picking an option, such as Resolve in External Merge Tool to interactively merge with a merge tool.

(Note, in git there's a type of merge called an 'octopus merge', where you can merge many branches into one at once. SourceTree can display octopus merges but doesn't let you create them right now - to be honest I think separate merges are tidier anyway ;))

comments: author: shouren dalvi
body: Thanks a lot!!


author: shouren dalvi
body: Thanks a lot steve!..I tried it and it worked smoothly!!
Where can I find the "Interactive Rebase" Dialog in SourceTree
Asked by Andreas Schneider:

I wanted to test the interactive rebase in SourceTree 1.6 but I cannot find the dialog. Please Help...


Answers:
author: stevestreeting
body: The simplest way is to open the Repository menu, then click Interactive Rebase. This will rebase the commits which are ahead of your tracking branch.

You can also right-click a commit in the log and choose to Interactive Rebase from there.


author: Brian Hann
body: That option does not appear to be there in 1.0.6.0. Right-clicking a commit only shows "Rebase..." and that does it non-interactively.

The "Repository" menu has no Rebase option at all. (This is the Windows version btw, if that matters).

comments: author: KieranA
body: Hi Brian,

Interactive rebasing is only supported in the Mac version. The Windows version is catching up to the Mac though so we do plan on having interactive rebasing in the Windows version.

Cheers


author: Mindaugas
body: Hi Kieran,

Any news on Inreactive Rebasing on Windows version?


author: Ezequiel Rodriguez
body: Kieran,

Yes, us Windows users desperately need interactive rebasing! I hope it's coming along smoothly.


author: KieranA
body: I'm not working on it yet, but I'm sure I will be in the near future. It's scheduled for this year and is pretty high up on the list, anyway.

Cheers!


author: Simon Lieschke
body: Is there a JIRA issue tracking this for Windows I can throw a watch on?


author: KieranA
body: I am actively working on it, but there's no JIRA issue, it's just on our project schedule.

Cheers!


author: gabrielmaldi
body: Any updates? :) Thanks!


author: KieranA
body: 1.5 beta will be available tomorrow, we'll be tweeting it from our @sourcetree account. Cheers!
Why can't I commit changes to my submodules?
Asked by Pipi Fakidomyth:

When I update my submodules, the option to commit is disabled. Maybe I'm not using submodules properly? Please have a look at the attatched image:![](http://i.imgur.com/7ajaaq1.png)


Answers:
author: stevestreeting
body: The file-level commit is disabled because you've already staged these changes (it's actually the same for all files which are staged). Because you've staged the changes, it's the top-level commit (toolbar or Ctrl-Shift-C) that commits staged changes. You can only commit individual files unrelated to the index when they're unstaged.
Sourcetree: Checkout branch in windows version
Asked by Jan David Wasem:

Perhaps I'm just stupid...  
But in Mac Version it is possible to type in "checkout branch" name, when cloneing a repository from remote host.  
In same dialogue in windows version, I cannot find a field like that, Sourcetree allays checks out master branch.


Answers:
author: stevestreeting
body: You're right, this is a feature that hasn't made it into the Windows version yet. It's logged here: <https://jira.atlassian.com/browse/SRCTREEWIN-532>
Cacert file for Windows SourceTree
Asked by Richard Bezemer:

I have a cacert file I need to reference for a windows install of sourcetree, on mac I usually did this by adding the following to the \~/.hrgc file

```
[web]cacerts = ~/customhg.cacert
```

I am still trying to figure out the proper way to do this on the windows install of source tree.  

any help is greatly appreciated.


Answers:
author: stevestreeting
body: The same options would apply, except that SourceTree for Windows doesn't yet support Mercurial. This is planned for 1.0, which we're trying to get to as soon as we can.


author: Richard Bezemer
body: Hmm, my mistake then. Everything in the UI lead me to believe that Mercurial was supported in the latest version.
Sourcetree with Mercurial (Mac) auth problems. Can't push.
Asked by Maureen Dunlap:

We have a Mercurial repository on kiln and I am able to see all the revisions in Sourcetree. However I am unable to push files. I keep getting:

ignoring invalid \[auth\] key 'username'

ignoring invalid \[auth\] key 'password'

Here is what I've tried. No matter what I do, I can not get these errors cleared and can't push files.

* I have gone through all the settings but can't figure out what's going on. My keychain app doesn't have an entry for Sourcetree, but it does for kiln. Also I've included my username in the URL.
* In the Sourcetree bookmarks settings, I edited the entries to include the password.
* I had previously been using TortoiseHG for Mac and did not have those extensions checked. Tried checking them but no difference either way.
* I deleted the [kilnhg.com](http://kilnhg.com) keys from Keychain.app and was hopeful when Sourcetree then prompted me for username and password - and I had it re-save to the keychain. However still get errors when trying to push.

What am I missing?


Answers:
author: Maureen Dunlap
body: Sorry, figured it out. I hadn't scrolled down to see the rest of the error. There was a problem with a remote head and I hadn't merged. Once I did that I was able to push.


Tags: authentication

mercurial

password

push

user
Update from SourceTree Version 1.5.8 to 1.6.0 fails on Mac OS
Asked by Zteve:

Update offered: download apparently succeeds; extraction also apparently succeeds; but when initating update and relaunch the update fails saying: An error occurred while extracting the archive. Please try again later. No diagnostics that I can see.

This fails (hard) for about a week now.


Answers:
author: KieranA
body: Hi Zteve,

Could you open up your "Console" (cmd+spacebar then type "Console") and see if there's any entries for either "SourceTree" or "SparkleUpdate" in there? The latter is probably what we'd look for specifically. You can either search in the top-right hand search bar or use the tree on the left to select the one in particular. It's probably best to try and the update first, and straight after it fails then have a look on the console as this will have just entered any errors.

This should give us some further clues to what's going wrong as it's quite difficult without a crash report of any kind.

Many thanks in advance

comments: author: Zteve
body: Sorry for not getting back to you. I was so confused by the Atlassian id fuss (I changed my email address and got thoroughly lost in the mess) I couldn't continue the subscriptions or get to the question pages again. But that's another issue.

I'm running on Mac OS 10.8.3 (here and on an iMac) and on the iMac the (automaticly prompted) update was painless. Not so on the MacBook Pro.

I looked in the Console and couldn't find any SourceTree entries (other than some warnings about repos that I moved), but I have manually updated to 1.6.0.1 from the public download pages on the website since, and now the problem doesn't recur.

There is a single line SparkleUpdate.log:

2013-05-13 08:31:58 +0000: ===== SourceTree.app =====

(nothing else) but no entries in the system log corresponding to it. Sorry I cannot reproduce this anymore.


author: KieranA
body: We've had three reports of this and the one of the other individuals who had the same problem also reported 1.6.0.1 fixed the problem when manually upgrading. I'll keep note of this in case there are more reports, 1.6.0.1 is officially the latest anyway. Sorry about the blip!


author: C. Faysal
body: i ran the same update on 10.8.3 w/o any problems


author: stevestreeting
body: What version of Mac OS X?
How do I get off the App Store?
Asked by Roger Joys:

I use SourceTree on 2 different systems. I purchased one direct and one via the AppStore, thinking that was a good idea. However, the AppStore version is woefully behind and the AppStore is not offering an udpate.

How can I move the AppStore purschsed item to Atlassian?


Answers:
author: stevestreeting
body: You can just download from <http://sourcetreeapp.com> - your App Store license will automatically register the direct download copy as well. All your settings will be migrated across. You should delete the old SourceTree.app from Applications and replace it with the download from [sourcetreeapp.com](http://sourcetreeapp.com).

If at any point in the future you re-install your Mac from scratch, you'll need to register SourceTree because your App Store reg won't be on there any more, but this is free, and also quick and easy with the online registration tool, only takes a couple of minutes.
GitFlow finish feature with rebase doesn't work (WIN)
Asked by Johan Leino:

When I finish a feature in GitFlow and use rebase option I get this:

"Finish was aborted due to conflicts during rebase.

Please finish the rebase manually now.

When finished, re-run:

git flow feature finish 'myfeat' 'development'"

However, checking there are no conflicts and I can do it manually...through command-prompt


Answers:
author: stevestreeting
body: You can resolve this in SourceTree. Here's what happens and what you should do:

1. You Finish Feature with the Rebase option, and there are conflicts. SourceTree pops up a dialog saying you now have conflicts in your working copy that you need to resolve
2. You resolve the conflicts using the file context submenu Resolve Conflicts - either use a merge tool, take one side or the other, etc.
3. Once you've done that and there are no conflicts remaining, you continue the rebase. You can either do that via the Actions \> Continue Rebase option, or you can use any Commit shortcut and SourceTree will prompt you to Continue or Abort the rebase anyway, because it knows the state and what should happen next.
4. If more conflicts occur, repeat 2-3
5. Once the rebase has finished, you will still be on the feature branch but the rebase has happened. So now you use the Finish Feature option again and everything will resolve.

comments: author: Johan Leino
body: Yes I know how to rebase and solve conflicts. The problem is that there are no conflicts. I think there might be a bug in the rebase option when finishing a feature. It doesn't seem to work through the UI. If I do a manual rebase it works without any conflicts. It is the windows version btw.


author: stevestreeting
body: Yeah, I was testing this on the Windows version as well, and I couldn't reproduce that error with or without conflicts. Will try again.


author: stevestreeting
body: My bad, I had a symlink hanging around in my embedded git version which was hiding this silently. Logged here: <https://jira.atlassian.com/browse/SRCTREEWIN-548>


author: Johan Leino
body: so this fix will be in v 0.9.3 as I understand...or? btw, great feedback from you guys!!


author: stevestreeting
body: Yep, I squashed it yesterday so it will be in the next update, 0.9.3. This will go out via our new installer / update system BTW, as discussed here: <http://blog.sourcetreeapp.com/2013/05/13/new-installer-updater-for-sourcetree-for-windows/>. I was not intending to do this update until next week though, can you manage until then? If it's a major problem for you we can possibly give you an out-of-band patch release in the mean time.

Glad to help!


author: Johan Leino
body: no worries...I'll hold on
Sourcetree merge without commit broken in v1.6.0?
Asked by mkitek:

I'm using Sourcetree Version 1.6.0 (just updated) on my Mac and often merge changes to master using this settings: <http://o7.no/YvUXaL>

Before update all was ok, but now sourcetree automatically commit changes (the first option is not selected).

How to prevent this behavior?


Answers:
author: mkitek
body: Ok, I understand that, but why if the checkbox "Commit changes immediately (if no conflicts)" **is not checked** sourcetree commit changes into my working copy?

I want merge but no commit.

comments: author: stevestreeting
body: I just ran through a case of this in 1.6.0.1 and couldn't reproduce it, my 'Commit changes immediately' option was unchecked and right afterwards I had an uncommitted merge state to review \& commit.

Are you sure your merge wasn't just a fast-forward merge, ie no changes on the destination branch? If you're in that case you also have to check 'Create a commit even if merge resolved via fast-forward'.


author: KieranA
body: Hi Marcin,

SourceTree remembers what you had previously set in this dialog now. If you check that setting now and click cancel and then re-open that dialog the preference will be automatically turned on. It's just because the last time you used that dialog the checkbox was turned off.

Hope that helps


Tags: commit

merge
How to stop notifications from Sourcetree?
Asked by Michael Miller:

I am on OSX 10.7.5. I upgraded to SourceTree 1.6.0 and now it is notifying me about things I don't want to be notified about. How can I make it stop? Thanks.


Answers:
author: KieranA
body: Hi Michael,

If you've got Growl installed you can disable the notifications, we are planning a very near-future release which offers the option to turn them off.

Cheers

*EDIT*: This will be in version 1.6.1 as a general preference. This will be out very soon, thanks for your patience on this one.

comments: author: Karl Horky
body: The preference in 1.6.1 is "Disable Desktop Notifications" under the General pane.