youngmon/atlassian-qna huggingface dataset:
subpaths seems to malfunction
Asked by jamesm:

I have a repository with a number of subpaths in the .hgsub file. These are used to redirect the repositories from being nested to flat when pushing to hosted services.

I have number of rules under the \[subpaths\] section of the file such as this:

\[subpaths\]  
http://(.\*)/parentRepo/Game = http://\\1/parentRepogame

However when I try to commit the parentRepo in sourcetree it seems to recognize these subpath rules as real repositories ( http://(.\*)/parentRepo/Game is listed as a sub repository for example) for the sake of committing and will not let me commit parentRepo until the other (non existant) repos have been commited.

Am I using source tree incorrectly or is this a bug?

Regards,

James Mintram


Answers:
author: stevestreeting
body: This is probably technically a bug, but I must admit to not understanding the intention or expected behaviour of a setup like this - SourceTree's support for subrepositories has primarily been designed with linked sub-projects in mind (similar to svn externals etc).

Can you explain the purpose \& expected behaviour of your case or point me to some documentation that illustrates it? I don't understand how these subpaths can be non-existent as you refer to them.

comments: author: jamesm
body: Hi Steve,  
Here is a link that explains properly what I am doing with sub repos: <http://mercurial.selenic.com/wiki/SubrepoRemappingPlan>

So on services like Bitbucket that only allow flat repository names such as <http://bitbucket.org/user/repository_subrepo> and not <http://bitbucket.org/user/repository/subrepo> I can use the remapping ability in the .hgsub file

I hope that better explains it :)

Is this likely to get fixed?

Regards,

James Mitnram


author: stevestreeting
body: Thanks for the info - I'm tracking this issue in my work queue here: <https://jira.atlassian.com/browse/SRCTREE-954>

It'll definitely get fixed; I'll try to get it at least tolerating this setting in a 1.4 point release, the next one if possible (although that's due tomorrow!)


author: stevestreeting
body: It appears to be a trivial change to tolerate this configuration actually, please can you try this pre-release build and let me know if it solves your issue?

<http://downloads.atlassian.com/software/sourcetree/SourceTree_test.zip>


author: jamesm
body: Yeah, that appears to work brilliantly! Thanks very much for the quick update to the app :)Regards, James Mintram


author: stevestreeting
body: Awesome, this will be in the official 1.4.3 update. Thanks for testing.
Feature Request: Ability to cherry-pick from the search view
Asked by Stephen Cooper:

Our workflow involves always putting a change request id in the commit message. If we want to cherry-pick a change request which involved multiple commits, I go to the search view in SourceTree, search for the commits, copy the SHA-1 code, go to the log view, jump to the SHA-1, then cherry pick.

It would be a lot nicer if I could search for the change request in the search view, then mulit-select the matching commits and cherry-pick.


Answers:
author: sreekumar_menon
body: need this feature +1


author: Jamie Saunders
body: +1 for this feature, not being able to search for commits to cherry-pick is quite an inconvenience.


author: j-myers-coretex
body: this feature is absolutely essential! Please add.


author: Jamie Saunders
body: +1 for this feature, not being able to search for commits to cherry-pick is quite an inconvenience.
How to clone an svn repo in Sourcetree
Asked by David Kerwick:

Hi,

When I try to clone a subversion repo at for example

svn://\<myserver\>/\<mycode\>

It gives an error

This is not a valid source path / URL

and the details section says

fatal: Unable to find remote helper for 'svn'

Do I need to download something?

Thanks

David


Answers:
author: David Kerwick
body: Hi, Thanks for the reply.

Yep svn info works and git svn clone also works from the command line.

So I checked out the project with git svn and added it to sourcetree.

This for some reason has sorted sourcetree out I can now clone directly.

Not sure why that fixed it, but sure don't look a gift horse in the mouth.

I can't commit, but that's due to Auth failure because of a windows domain I think, but that's a different problem

Thanks for your help

David


author: stevestreeting
body: I don't have any Subversion servers running via svnserv (svn://) rather than https:// or ssh:// - does 'svn info \<your URL\>' work on the command line?
Default commit mode
Asked by Janos Kukoda:

Hey!

How can I set the default commit mode from stage changes to selected file?

Regards, J?nos


Answers:
author: stevestreeting
body: Open Preferences, switch to the 'Git' tab and un-check the box 'Use the staging area'.

The split view in the file status window will go away, and commit will always default to selected files instead of what's in the index.

comments: author: Janos Kukoda
body: Thanks for quick answer.
SourceTree license
Asked by Jan Fetyko:

Dear Atlassian,

I'm looking at downloading and using SourceTree, but cannot find the actual license of it. I know it is free, but what is the license. It is GPL or something else ?

Thank you.

Jan


Answers:
author: Thomas Schlegel
body: Hi Jan,

look here: <http://www.sourcetreeapp.com/register/>

Best regards

Thomas


author: stevestreeting
body: When you start SourceTree for the first time you'll be asked to accept the EULA, which you can read for details. SourceTree is not open source but it is free (of charge).

comments: author: Paolo Petta
body: Hello Steve, all ---

so is the EULA packaged with SourceTree v.1.6.2.2 for Mac OS X a mistake?  
It states there is an "up to 30 days" evaluation period, after which purchase of a license is mandatory.

Looking very much forward to this important piece of information,

many thanks in advance for your trouble,

Paolo


author: Alexander Bird
body: Paolo, I asked the same question :). See here: [https://answers.atlassian.com/questions/154537/is-sourcetree-free](/questions/154537/is-sourcetree-free). Here is the answer that Steve gave there:

You do still have to register after 30 days, but the registration has been free since Atlassian acquired SourceTree in late 2011.


author: Paolo Petta
body: Alexander

many thanks indeed for the fast, kind\&patient, and informative reply - I guess the term "purchase" has a specific meaning in legalese I was not aware of.

(so now it's on to perusing the software -- thanks again!)


author: Nick Hauss
body: "SourceTree is not open source but it is free (of charge)."

Is this still a valid statement?

I have heard recently that Source Tree was made oss, but I cannot find the source location


author: Alexander Bird
body: <sourcetreeapp.com/eula.rtf>
SourceTree - view a private bitbucket hosted git repo i have write or admin privileges for
Asked by Paul Herzog:

My friend, sets up a git repo on bitbucket. Makes it private, invites me (different bitbucket account) with admin rights. I can not see this in sourcetree 'Hosted Repositories'. Is this possible? If not, suggested workaround (that does not compromise the privacy setting)?


Answers:
author: Phil
body: Fast forward and "Follow" seems to now be "watch this repository". However, doing so does not make a non-self-hosted repo show up in Sourcetree \> Show Remote Hosted Repositories. I am unable to have anything but my own repos showing in the Sourcetree hosted repo browser.

I have refreshed the list and even restarted Sourcetree. The repos show up on the Bitbucket website when filtered by "Watching".


author: stevestreeting
body: You can always clone from any repo you have access to by copying the clone URL into the clone box. However if you want it to show up on your Hosted Projects, just click the 'Follow' option for this repo in its Bitbucket home page (it's near the top right).

The Hosted Projects window will show all of your own repositories, and all repositories you follow, whether you have write access to them or not. This can be useful if you have other people's repositories that you want to clone (read-only or write) too.
How can you rename git branches in SourceTree?
Asked by sfkleach:

I am working on a side-by-side comparison screencast using SourceTree, SmartGit and Gitbox. This has an unhappy knack of showing up missing functionality. In this case, I got stuck showing how you would rename a git branch from inside SourceTree. It's a right click on the branch name in SmartGit, for example.

So, my question is, is there a straightforward way to rename a branch from the SourceTree GUI? This would be equivalent to "git branch -m".


Answers:
author: Andrew S
body: I know this is an old question, but just for the record, it's now a SourceTree feature (in OSX at least):

![Screen Shot 2017-04-04 at 11.13.16 am.png](https://community.atlassian.com/t5/image/serverpage/image-id/20i3BC8D3E5FF8F8F90/image-size/large?v=v2&px=999 "Screen Shot 2017-04-04 at 11.13.16 am.png")


author: sfkleach
body: Thanks for these helpful answers, much appreciated.


author: Mike Warnes
body: Also you will need to delete the remote branch and push the newly renamed local branch to remote


author: stevestreeting
body: Right now you have to delete \& re-create the branch - in-place renaming is on the list: <https://jira.atlassian.com/browse/SRCTREE-713>


Tags: branch

git

rename
Is it possible to create a custom action in Sourcetree which will take a user input ?
Asked by Oleg Detinin:

i.e. when I invoke it a window will appear where I can type some text.

Also, I know about $REPO, $FILE, $SHA -- any other placeholders ?


Answers:
author: stevestreeting
body: Not at the moment, this is a feature request here: https://jira.atlassian.com/browse/SRCTREE-942

comments: author: Oleg Detinin
body: Great ! Thanks a lot ! Hope it will make to release soon.


Tags: configuration
Not receiving email to complete 2FA for BitBucket
Asked by Arpan Mukherjee:

Not receiving email to complete verification process. I have used Twilio Authy for authentication. ![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/153708i5E38D54D5A43C65B/image-size/large?v=v2&px=999 "image.png")


Answers:
author: Caroline R
body: Hi, [@Arpan Mukherjee](/t5/user/viewprofilepage/user-id/4496583)! Welcome to the community!

I performed an analysis on our logs and confirmed that your email had a block on the server that prevented emails from being sent to this address. This can occur when the system tries to send an email and the account does not exist yet, it's not activated, or it rejects the email for some internal reason.

In this case, I have removed the block from your email, could you please try to follow the 2FA process again?

Please let me know how it goes and feel free to share any additional questions regarding this subject.

Kind regards,  
Caroline

comments: author: Arpan Mukherjee
body: It worked, thanks !!!


author: Caroline R
body: Hi, Arpan!

Thanks for your confirmation! I'm glad to know it worked! :)

Kind regards,  
Caroline


author: Wojciech Marciniak
body: The same happened today to me. [@Caroline R](/t5/user/viewprofilepage/user-id/3934006) could you help?


author: Caroline R
body: Hi [@Wojciech Marciniak](/t5/user/viewprofilepage/user-id/1635385).

Are you still facing this problem? In case you are, I would like to ask if you could please create a new question for your issue.

We generally encourage users to create a new question for their issue instead of posting on someone else's question, because 1) the root cause and resolution may be different for each case 2) a question can become cluttered and difficult to follow if we try to troubleshoot multiple users' issues in it.

Please feel free to let me know if you have any questions.

Kind regards,  
Caroline


author: Pham Thanh Tu
body: Dear [@Caroline R](/t5/user/viewprofilepage/user-id/3934006) , I have been trying to enable 2FA but stuck at email confirmation step. Could you help check and resolve it for my account? regards


author: Pham Thanh Tu
body: Can someone support?


Tags: bitbucket-cloud

cloud
Import an existing GIT repository
Asked by William Ashworth:

Is there a specific procedure within SourceTree for importing an existing GIT repo? I've done this with SVN before in the past, but we're trying to essentially add an existing repo to a new remote to sync history to the new remote server.

Totally feel like I'm having a dumn moment right now. Thanks for your replies.


Answers:
author: Colin Goudie
body: If the remote server is empty you just need to do a git command like

git remote add origin gitrepourl

Then

git push origin master

In SourceTree's Repository menu there is an 'Add Remote' option which I imagine is similar to the commands above


author: stevestreeting
body: Click the 'Settings' button on the far right of the repository window toolbar, then in the Remotes section click 'Add' and provide the details (either manually, or use the 'Globe' button to pull a URL from your hosted repositories on Bitbucket etc if you've set those accounts up). You can then select this remote to push to.

Once you've synchronised, if you want to make this the default in future, you can remove the other remote and change the name of the new one to 'origin'.


Tags: git

import

repository
Does SourceTree supports Gitorious?
Asked by Web Admin:

Hi There!

I just downloaded SourTree and found out that it does supports pre-defined Git SAAS repositories but no selection for Gitorious.

Does it supports Gitorious (own server) or will be in the future?


Answers:
author: rverschoor
body: The Setup Wizard provides shortcuts for Bitbucket, GitHub, and Kiln, but you are in no way restricted to those.  
You can connect to any Git server, either local or in the cloud.  
Just go to File \> New and add the location/URL of the repository.  
Alternatively use View \> Show Bookmarks to open the Bookmarks window, and drag \& drop a URL of the repository into the list.
How do I use Command Line Tools?
Asked by Jeff Shrek:

I clicked on the option to Install Command Line Tools, but typing hg at the terminal prompt says command not found.

How do I access hg from terminal?

Thanks


Answers:
author: rverschoor
body: Are you referring to the "Install Command Line Tools" menu item in the SourceTree application?  
If so, that only allows you to start or switch to SourceTree from the commandline by typing "stree".

If you want to run hg (Mercurial) from the commandline, you'll have to download it from <http://mercurial.selenic.com/downloads/> and install it.

comments: author: Jeff Shrek
body: Ahhh.. ok, I thought it was for installing the command line version of Mercurial.. thanks!


Tags: cli
How to delete a tag and push
Asked by Michael Tibbott:

I have tried right clicking on the tag in the Tags sidebar and selecting Delete \<tag name\>. I also tried clicking on the Tag nav icon and then Remove Tag. In both cases the tag remains at origin/master. In the command line I would do git push origin :\<tag name\>.

Thanks,

Michael


Answers:
author: Rod Barnes
body: I encountered this today - 2014-07-01 (v1.9.4.1). But this article implies it was fixed in 2012? I also found that it isn't possible to push a tag when you are moving it. The move occurs locally but no one else can see the change; their tags remain in the previous location.


author: Michael Tibbott
body: Wow, thanks for the prompt response. I only stumbled on SourceTree recently but I think it is great. How can this be free? Thanks!


author: stevestreeting
body: Yes, at the moment deleting a remote tag is not exposed, I'll try to get this one into the next update: <https://jira.atlassian.com/browse/SRCTREE-431>

comments: author: Rod Barnes
body: I added a comment back in July that this is still an issue. I've seen no response. Thought I'd try commenting on your "fix" comment. Maybe you'll see it. :-)
External diff doesn't work when comparing a local repository vs a remote
Asked by Daniel Spangenberger:

Except when you press the 'External Diff' button in the internal diff tool (in the bottom right pane of the UI).

I have tried multiple external diff tool configurations, even a custom one and none of them respond to Command + D or Action \> External Diff. Clicking the 'External Diff' button in the internal diff view does work.

I've only found this to be the case when comparing a remote against a local (the 'Diff against current' option in the tree UI).


Answers:
author: stevestreeting
body: Sorry for the previous answer, I realised I stupidly missed the 'except' part about the diff pane button working. This looks like a bug where the higher-level menu function isn't hooked in but the embedded diff button is, I'll fix that. Logged as a bug: <https://jira.atlassian.com/browse/SRCTREE-1003>


author: stevestreeting
body: Hmm, I can't reproduce this here - please see this video and see if there's something I'm missing: <http://screencast.com/t/ZDJnMianUrZ5>

This was with my usual Kaleidoscope configuration; sorry for the cropping but I think you can see the necessary details.
Per repo user information
Asked by trss:

I work on different repos and would like to set different e-mail ids for some of them, different from the "Default user information" that we provide in settings. Is that possible? If yes, how?


Answers:
author: stevestreeting
body: Yes, if you click on the 'Settings' button on the right-hand side of the repository window toolbar, then click 'Advanced', there is a user information section when you can uncheck the 'Use global user settings' option and specify different user details just for this repository.


Tags: commit

git

repository

user-management
Amend last commit message?
Asked by Liam Jones:

I messed up a commit message and and noticed before I pushed my local repo changes out so I wanted to edit the message. I couldn't find anywhere obvious to do this within SourceTree.

I just did it via the git command in the end (git commit --amend -m "correct message").

Did I miss the ability to do this in the SourceTree interface or is it simply not there?


Answers:
author: stevestreeting
body: It's there, at the bottom left of the commit window, 'Amend latest commit' checkbox).

comments: author: Liam Jones
body: Ah! Thanks Steve. :) Stupidly, I didn't think of looking in the commit window - I was looking for something off of the newest log item's right click menu.


author: Stanley Kurdziel
body: In version 2.0.5.2 on Mac, the option is now at the top right of the commit section. "Amend last commit" is the first option in the "Commit options..." dropdown.


author: Tommy Kye
body: Cool!


author: reybruno
body: Thanks!


author: Marie Toulouse
body: still no graphic update for this feature on windows !!


author: Bill OLeary
body: Thanks for this...

I have to keep coming back to this answer because the location of that option is not really intuitive to me...

I think it would better to have this option in the context sensitive menu which gets launched when right-clicking the selected check-in in the history view.


author: shulif
body: I totally am unable to follow the "Ammend latest commit" flow.

I agree with Bill OLeory.


author: dheerajsvim11
body: Yes It worked for me in Mac  

Select Commit -\> It will open commit window -\> Center Right -\> Commit options -\> Amend last commit   

Thanks Steve


author: BertjeBertje
body: I got it working after a couple of tries, but this is **rubbish**. I even had to find out again, while reading my own description, which I improved.

* One can't directly work on the **commit itself** with some button or option. One has to make a sort of ghost commit.
* Possibly with some uncommitted files, one has to push 'Commit'. That was too scary to try, so I undid changes first.
* So wit NO uncommitted files I had to push 'Commit' (**top left** )! Then find that option. Then get a popup in **bad English** : "Do you want to replace the commit text above with the message from the previous commit?" No, the **other way around!**And it is not 'above'.
* And for some reason I had to try a couple of times because it did not work, the second '?ommit' button was not enabled, or whatever. But probably I was misled by the popup which **suggests** it finalizes the action.
* I just found out why. It isn't. One has to push commit **options** first, which changes a possibly entered text **back** . **Then** enter the new text. **Then** commit.
* So again: this is rubbish. Please Atlassian, **change** this to something intuitive.
Portal access
Asked by Furkan:

I recently opened an internal helpdesk portal so that co-workers can make tickets for all kinds of internal problems. I noticed that outside customers managed to find it, I'd like to hide the portal so that only people who are connected to the azure active directory can access it.


Answers:
author: Max Foerster - K15t
body: Hey [@Furkan](/t5/user/viewprofilepage/user-id/5216901)

I recommend reading the documentation on [managing portal access](https://support.atlassian.com/jira-service-management-cloud/docs/set-up-and-manage-portal-access/). You should also familiarize yourself with the site access settings and customer access in general. :) [Change access settings for your customers](https://support.atlassian.com/jira-service-management-cloud/docs/change-global-customer-permissions/)

I'm confident that you will be able to achieve your goal after that. :) Or you simply ask more questions here if that isn't enough. ??

Best, Max

comments: author: Furkan
body: I noticed that the access settings for the customers is for all of our jira projects, we have a couple thats directed to our customers and if i change the customer access settings they can't visit all the other portals.

I have temporary changed the settings that only people who are in the customerlist for that project can visit the portal but that means i will have to add all of our co workers manually, didn't find a setting where i can add an entire group or organisation.

Thanks for your answer and I'll continue to look!


author: Jack Brickey
body: Hi [@Furkan](/t5/user/viewprofilepage/user-id/5216901) , welcome to the Community.

a portal should only be accessible to those customers that are listed as Customers in the associated project. Could you click on Customers in the sidebar and see if the unwanted customers or Organizations are listed?


Tags: cloud

confluence-cloud