youngmon/atlassian-qna huggingface dataset:
Move out License assignment from group
Asked by Pc Addon:

Hello,

I'm fairly new is this system.   

Today we assign bitbucket and confluence licenses via a Jira-group.   

I would like to move this function out of the existing group into two seperate groups due to the original group have a lot of other permissions to projects connected to it.

Is there a simple way to do this? How do you assign the license from group membership?

Best regards.


Answers:
author: Christian Glockner
body: Hi Fredrik,

Licenses in Bitbucket Server are attached to global permissions, so if you want to give a license to a group in Bitbucket Server, navigate to the Global Permissions section of the admin section and assign the desired permissions there.

Cheers,

Christian

Premier Support Engineer

Atlassian

comments: author: Pc Addon
body: Hi Christian,

Thank you for your reply.

I can see the groups there, but im not able to change the bitbucket user section, it's greyed out. I'm not able to add or remove user from that section either. Do I have to log on as another user?

best regards.


author: Pc Addon
body: I believe I found what I was looking for. I had to create the group in Jira and sync it to bitbucket.   
thank you!

Best regards.


Tags: bitbucket-server

server
How to reload global user information in SourceTree?
Asked by Wim Deblauwe:

I have updated my global username and email on the command line:

```
git config --global user.name "NewUserName"git config --global user.email "mynew@mail.com"
```

I restarted SourceTree, but when I open a repository, then go to Settings \> Advanced, it still shows the old username (The 'Use global user settings' checkbox is checked).

Any idea what I need to do to make it correct?


Answers:
author: Agustin Martin
body: I thought I was going crazy seeing how sourcetree managed my global username/email, but I'm glad I'm not alone in this.

Using Win7, sourcetree 1.4.1.0

I see the wrong (old) username in the Tools-\>Options menu

I opened [SRCTREEWIN-1570](https://jira.atlassian.com/browse/SRCTREEWIN-1570)


author: Wim Deblauwe
body: It does not change to the global ones. I am on version 1.6.1 of which the updater tells me that it is the most recent.


author: KieranA
body: Strange, I cannot reproduce this behaviour. If you uncheck the 'use global settings' and re-check it, does the username/e-mail change to the global ones. This is the expected behaviour. If doing this doesn't work for you then it's a bug although I can't reproduce it from here


author: Wim Deblauwe
body: It is just displaying that is wrong. The commit has the good username and email address. This is on Mac.


author: KieranA
body: Does it show your old e-mail/username when you make a commit, though? It might be just that we're displaying what was previously set in the local. Also, is this for Windows or Mac?  
Thanks in advance!
How do I pull from feature branch A into new feature branch B?
Asked by Magnus Andersson:

Hi, I'm using gitflow and Source Tree.

If I update my development branch from upstream, it is possible to pull from the local develop into a feature branch thus bringing that branch up to speed.

However if I have a feature branch A and I want to go off and do a big refactor to try something I'm not sure I will keep. But I do not want to finish feature branch A, I want to create a feature branch B (based on develop) and then pull from feature branch A to experiment in feature branch B.

I am not able to do this from the pull menu when choosing 'Custom' to pull from local branches don't see anything under feature only master and develop. Is this by design or is it just a missing feature in the GUI?


Answers:
author: stevestreeting
body: 'Pull' actually just means 'Fetch and Merge' and is only really applicable to remote branches.

To bring your feature branch up to date with the develop branch, just merge the develop branch into your feature branch.


author: Magnus Andersson
body: I did not want to get my feature branch up to speed with develop. I want one feature branch to be based off another feature branch.

comments: author: Magnus Andersson
body: Sorry, this should have been a comment....


author: stevestreeting
body: To do that, you just create feature branch B from the last commit of feature branch A. You can do this by right-clicking that commit and selecting 'Branch', or by using the toolbar's Branch button and selecting 'Specific Commit' for the point at which you want the branch to start, and browsing to it from there. (If you're using git-flow, it has a similar way to specify where your feature branch will start from).
How to enable pushing -p option for git flow hotfix finish
Asked by carolyn foo:

Hi,

I understand for command line, there are various options just as -p to push the commits when finishing a hotfix. However, hotfix in sourceTree does not have that option. Is there a way to include that?

Thanks


Answers:
author: carolyn foo
body: Hi,

The windows verision only has Delete branch and Force Delete. Not sure the different between the two though..

comments: author: stevestreeting
body: Oops, the setting was there but the visibility was wrong so it wasn't showing up for hotfixes or releases. Will be fixed in 0.9.4.


author: KieranA
body: Hi Carolyn,

When finishing a hotfix you can push the changes by selecting "Push changes to remote" as this is what the "-p" option does on finishing a hotfix in git flow. For example, the Mac version has the following:

![](http://i.imgur.com/Wm3aVks.png)

The Windows version has something very similar, too.

Hope that helps


Tags: hotfix
Symantic/Norton is bringing up Suspicious.Cloud.7.EP warning
Asked by bluesguy:

Norton is raising a serious warning about the SourceTree exe that I downloaded and installed.

Here is the link to the Norton message

I would love to know what this is all about.


Answers:
author: stevestreeting
body: I don't use Norton myself and my virus checkers raise no issues; Google suggests this has been a false-positive from Norton in the past especially if it's not completely up to date, do you have the latest version and definitions?
Connecting sourceTree to OpenSSH on a Windows 2008 server
Asked by John Swaringen:

I'm trying to setup our Windows 2008 server to allow us to use SourceTree for Git. I have the OpenSSH running, and I can connect via clients like Putty, etc. I have it set to give me the linux shell when I connect. However when I try to use a URL in source tree like this:

```
ssh://git@xxx.xxx.xxx.xxx/c/git-repositories/git-xxx
```

I get that it's an invalid repository. Any suggestions on what I'm doing wrong?


Answers:
author: stevestreeting
body: If you can connect with PuTTY and you have SourceTree configured to use PuTTY as the preferred SSH client implementation (Tools \> Options) then the same authentication routes you're using for PuTTY should work in SourceTree too. I'm assuming you have Pageant loaded with your key available.

The best thing to do is to click the 'Details' button next to the error message which should hopefully tell you more about what went wrong.
sourcetree: Paste into Clone Repository Source Path / URL: hangs application
Asked by stuartlynne:

Attempting to paste a GIT URL into the Source Path / URL: box of the Clone Repository dialog in sourcetree causes it (Windows version) to hang.  

Cannot close the application using the windows \[x\]. Have to kill the process in the Windows Task Manager. Seems to be reproducible.


Answers:
author: stuartlynne
body: Just to finish this, you asked if the hang as immediately or on tabing out of the field.  

**The application would hang immediately**. And become totally unresponsive. The only way to terminate it was with the end process option in the task manager.

comments: author: stevestreeting
body: I see - but you can'te re-create it any more, right?


author: stuartlynne
body: It was reproducibly doing the other day.

Today its working correctly!

Thanks!


author: stevestreeting
body: Very odd, I do this all the time and have never seen a hang - since it's the most common way of getting a clone URL into the dialog I expect most other people are using it too. I just tried it here with SSH and HTTPS URLs just to confirm and can't reproduce it.

Can you give an example of the URL you're pasting? Does the hang occur immediately, or when you tab out of the field?
Add multiple URLs into one remote on SourceTree?
Asked by Thiapalm:

In GIT config file I can create a remote with multiple URLs (eg. \[remote "all"\]), so when I push to it I can update several remotes at once. How can I do that in SourceTree?

Thx


Answers:
author: stevestreeting
body: You can't configure a remote with multiple URLs in SourceTree, but if you define it in the .git/config yourself then git push called from SourceTree should respect it.

comments: author: Thiapalm
body: Thank you Steve,

It would be neat if you could add such functionality in future releases.

Regards
Where do I report a typo in SourceTree (Windows)
Asked by Vincent Rozendaal:

Since the "SSH Authentication Failed" msgbox dropped the "d" of double-clicking. The message is :-

Your SSH agent (Pageant) is running but the server still rejected your connection. You may need to load the correct key by **ouble-clicking** on the Pageant icon in your system tray and selecting 'Add Key'.


Answers:
author: m
body: Steve should see that error here. In case he doesn't you can file a ticket for the Sourcetree project at [support.atlassian.com](http://support.atlassian.com).


author: stevestreeting
body: I've fixed this for the next update, thanks for spotting!
Can't rmdir when switching between branches with submodules in SourceTree on Windows
Asked by Ryan Masterson:

Hello,

I have a repo with two branches. The 'master' branch does not have any submodules. The other branch ('revamp') has two submodules in it ('awesome' and 'bootstrap'). In SourceTree on Windows 7, when I switch to the branch that does not have submodules, I receive the following error:

```
git -c diff.mnemonicprefix=false -c core.quotepath=false checkout masterwarning: unable to rmdir vendor/awesome: Directory not emptywarning: unable to rmdir vendor/bootstrap: Directory not emptySwitched to branch 'master'git -c diff.mnemonicprefix=false -c core.quotepath=false submodule update --init --recursiveCompleted successfully.
```

This problem does not happen to my colleagues using SourceTree on Mac. Also I get the same error trying to use the command line 'git checkout -f master' as well. So I think it's related to Windows.

Can anyone help?


Answers:
author: stevestreeting
body: Technically this is a warning rather than an error, the actions you're performing are still succeeding.

This Stack Overflow post has a good description of the reason why switching between branches with different submodules can cause problems, and what you can do about it: <http://stackoverflow.com/questions/6553743/switching-between-branches-where-a-subdirectory-was-in-the-main-repo-vs-submodu>


Tags: submodule

windows
Folder in git repo?
Asked by bilhays:

Sorry for the noob question, but in some of my projects source code is put in different folders. When I add a project like this to sourcetree it finds all of the files, but lists them all in the working tree window. How can I get it to reflect the folder structure?

tia,

bil


Answers:
author: Tim Jarvis
body: So I guess the next obvious question is....Is a folder view planned for the Windows version?

My main project has 10,000+ files navigating them in a flat structure is simply not fun.

comments: author: stevestreeting
body: Tracking it here, provided I can find (or adapt/write) a tree control fast/flexible enough to do it. <https://jira.atlassian.com/browse/SRCTREEWIN-391>


author: Tim Jarvis
body: Thanks Steve, much appreciated.


author: bilhays
body: Thanks, my blindness is mitigated....


author: stevestreeting
body: SourceTree for Windows only has a 'flat' view at the moment for files, not a 'tree' view. You can sort the list by clicking on the 'Path' column header though. Usually because you're looking at a list of modified files the size of the list doesn't get too big anyway, but you can also filter it using the search box at the top of the window.

comments: author: bilhays
body: Is that true for the mac client as well?


author: stevestreeting
body: No, the Mac version has a selector at the top-left allowing you to choose between flat, tree or column-based views for uncommitted changes.
Why did you guys remove the Command-Shift-F shortcut to Fetch?
Asked by Bogdan Poplauschi:

Guys, you have a close-to-perfection GIT client, but you messed me up. I used to rely heavily on Command-Shift-F to Fetch, now when I press this (out of instinct), it enables Full Screen mode and the more anotying part is the annimation. It's slowing me down. Can you at least add a new keyboard shortcut to Fetch?


Answers:
author: KieranA
body: Hi Bogdan,

We're really sorry about this - it was because the fullscreen shortcut overwrote our fetch shortcut. We'll make a new one for 1.6.2 and I've filed an issue for you here: <https://jira.atlassian.com/browse/SRCTREE-1625>

Many thanks for the report

comments: author: Bogdan Poplauschi
body: Thanks for your uber-fast response. Adding another shortcut sounds fair to me. Have a good day
Effects of Using SourceTree Git-Flow on a non-Git-Flow project
Asked by Tim Ahrens:

I am using SourceTree in Windows, with a group that is not set up for Git-Flow, and I want to use Gti-Flow locally. They have a "develop branch", but their production branch is named "trunk". I don't want to do anything to mess up their repository, but I want to use Git-Flow locally to manage my feature development. When I click the "Git-Flow" icon in SourceTree, it gives me a dialog entitled: "Initialise repository for Git Flow". If I put "trunk" in place of "master", will that have an effect on THEIR repository, or will the effect be just local?


Answers:
author: stevestreeting
body: All effects will be local, except if you push changes to their branches. The 'master' branch is where releases are merged into, so if you put 'trunk' in there and then used the 'finish' option on a release or hotfix, then it would merge your release / hotfix branch into trunk and that would affect their trunk if you pushed those changes. If you only used features, then your feature branches will be being merged into develop in the standard configuration, again those would appear if you pushed them. However any git-flow configuration remains local only.

comments: author: Tim Ahrens
body: I will only be doing feature branches and when I finish, they generally merge into develop, so I was thinking that master (trunk in their case), should not be effected.


author: stevestreeting
body: Yes, if you only use feature branches then master/trunk won't be merged to, only develop. It's releases and hotfixes that merge to master.


Tags: git-flow
local git server
Asked by Quentin Silvestre:

Hi all,

I have my own git server on my local nas. Is it possible to configure SourceTree with my git server?

like adding my server to the hosted accounts ? so I can create repository and get all my existing one ?

Thanks for your concern

-Quentin


Answers:
author: stevestreeting
body: You can ask SourceTree to clone from any git host, but the richer support which includes listing available repositories to clone in Hosted Projects is only available with the services whose APIs we support (Bitbucket, Stash, GitHub, Kiln). On other servers you just have to know the URL to clone from ahead of time, SourceTree can't figure that out automatically.


author: Quentin Silvestre
body: Okk got it !

Thanks a lot for your answer Steve!

comments: author: MnM300
body: What was the answer to this issue as i am facing a similar problem.


author: Quentin Silvestre
body: Hi Lucas,

Thanks for your answer. Is there a Howto somewhere ?

I tries some stuff but sourcetree doesn't want me to add my nas as a hosting account.

I have a repository in my bookmarks but I want to add the account and there is 4 choices, BitBucket, GitHub, which have pre-fillet url, then kiln and stash where I can set the url but I don't know what is the format.

To access to a repository in may bookmarks I entered: userName@192.168.1.101:/Users/userName/git/

So How can i set my account ?

Thanks

-Quentin


author: LucasA
body: Hi Quentin,

Yes, Sourcetree is a generic Git and Mercurial client, so you can perfectly connect your own server with. Even Atlassian Bitbucket (Git and Mercurial cloud service) and GitHUB could be used with Sourcetree.

Cheers,

Lucas
SourceTree and Git Flow remote branch delete on finish
Asked by Grant:

Git Flow has the ability to automatically delete the remote branch (along with the local branch) of a feature/hotfix/etc after finishing using the -F option. The -F option fetches the remote branch before it deletes it remotely so you don't lose any work.

```
git flow feature finish -F branch_name
```

I looked around but it doesn't look I the Git Flow addon in SourceTree can do the same. Is there some way to have this option in Git Flow options in SourceTree?

On a side note, great work on the SourceTree app! The whole app is great and the Git Flow integration just tops it off. Very userfriendly and intutitive.


Answers:
author: Isuru
body: I too came across this issue. I found this fork of git-flow called the avh edition(<https://github.com/petervanderdoes/gitflow>) fixes this behaviour among other improvements. Its actively maintained unlike the original. There are feature requests to integrate the avh version to sourcetree. Please vote for them. (Windows - <https://jira.atlassian.com/browse/SRCTREEWIN-1394>, Mac - <https://jira.atlassian.com/browse/SRCTREE-1762>)


author: Geoff Sokoll
body: I found this post after googling for a solution to the same problem. If you could add this function to SourceTree, it would be wonderful !

\[Have added a feature request to Jira as suggested by Kieran\]


author: KieranA
body: Hi Grant,

We don't currently support this but you're more than welcome to raise this issue on [jira.atlassian.com](http://jira.atlassian.com) under the SRCTREE project.

Thanks for your input, we really appreciate it!


author: Grant
body: Sorry, this is for Mac.


author: KieranA
body: Hi Grant. Just so we know, is this for Windows or Mac?
Re-open project windows at startup stopped working
Asked by Ivan Golubovic:

I think since 1.6 (I'm at 1.6.0.1) "Re-open project windows at startup" stopped working.

I have project(s) open quit Source tree, start it again and I only get Bookmarks window.

This worked nicely before 1.6 versions.

One possible reason I can think of I completely disabled OS X automatic application state saving (it was disabled even before 1.6 updates) and Source Tree begun relying on it and wasn't before.


Answers:
author: KieranA
body: Hi Ivan,

There's an option in your system preferences on your Mac that controls this. They're named differently and are reversed between OS X versions as follows:

* 10.7: "Restore windows when quitting and re-opening apps" - this needs to be turned **on**in order to re-open your repo windows on startup.
* 10.8: "Close windows when quitting application" - this needs to be turned **off**in order to re-open your repo windows on startup.

If you could try that setting out and see if it resolves your problem. If not, we can come back to it and re-address the issue.

Thanks!

comments: author: Ivan Golubovic
body: Hi,

Then why is there option in Source Tree when it depends on OS to do that?

The most annoying new feature of OS X is that restore windows, which I disabled (i.e. forbid access to "\~/Library/Saved Application State" folder ).

And before 1.6 version of Source Tree it worked well, and since 1.6 is the first app that I have where I miss function.

using stree in project folder from terminal opens project window, but still Bookmarks window pops up along it, which is kinda annoying but at least is a semi workaround.


author: KieranA
body: Hey Ivan,

This is because we now honour the OS preferences from 10.7 onwards. There's a system preference because 10.6 needs support for it.

I've filed an issue to get rid of the SourceTree preference for 10.7+ here: <https://jira.atlassian.com/browse/SRCTREE-1642>

Hope that helps
Prevent automatic fetching in Sourcetree
Asked by Aram Kocharyan:

This is quite common when I enter a git repo:

<http://i.snag.gy/ExgQn.jpg>

Is there an option to prevent automatic fetching of submodules? Afterwards it starts to download the submodule from github like crazy without even asking if I want to pull.


Answers:
author: stevestreeting
body: You can disable automatic background fetching globally in Preferences \> General \> Check default remotes for updates every X minutes (uncheck the box).

You can also do it per repo in Settings \> Advanced.

comments: author: Brandon Graham
body: Note that in the latest version of Sourcetree the global fetch settings are in Tools \> Options \> General instead of Preferences \> General.


author: SgtPooki
body: The automatic fetching also makes the git flow workflow a complete pain since you always have to switch back to develop to pull, then back to your feature branch to finish the feature.. this process can definitely be simplified through sourcetree.
Diff stopped working on .pbxproj files
Asked by Christopher Pickslay:

I used to always see diffs in SourceTree of my .pbxproj. As of about a month ago, I see "diff suppressed". This happens consistently across Xcode projects. I do not have any files set to binary in a .gitattributes file, and \`git diff\` on the command line shows me the diff. How can I troubleshoot this problem? It's a pain to use an external diff, as sometimes I want to be able to stage or discard lines or hunks.

I'm running Xcode 4.6.2 and SourceTree 1.5.6.

![](http://orbt.io/P35A.png)


Answers:
author: stevestreeting
body: Open up Preferences, go to the Diff tab and check out the suppression options there - to keep performance snappy we have options to suppress interactive diffs when files get to a certain size, or certain types of file (wildcard matches). You can tailor those to your needs.

comments: author: Christopher Pickslay
body: Thanks Steve. I did have \*.pbxproj in thos settings, but I've removed it and I still see the same thing. I tried quitting and re-starting SourceTree, making more changes to the project file, and clicking View-\>Refresh in SourceTree, all to no avail.

![](http://orbt.io/P4uD.png)


author: stevestreeting
body: Is it possible the \*.pbxproj has now exceeded 1MB? I sort of doubt it, but that's the only thing I can think of.


author: Christopher Pickslay
body: Yes, that was it. Thanks! Updated the size limit to 2,048kb and I'm back in business. For some reason it didn't even occur to me to check the size.


author: Quintin Willison
body: Thanks, both. This has solved the problem for me.

For the record the project file for one of our projects is currently tipping the scales at just over 1.2MB in size. The main reason for this is that we've got a reasonably large number of targets (i.e. added files soon increase bloat if they're members of all targets).

I wonder whether you might consider, in future:

1. Increasing this limit by default (modern hardware will cope).
2. Display a more helpful message up front in your UI when refusing to present the internal diff viewer - e.g. "Files size exceeds Internal diff view size limit of 1,024 KB. This limit can be changed in Preferences.".

comments: author: Alex Pasternak
body: Yes, a better message would certainly be welcome. I was banging my head on what I thought was a small XML file, but the diff was being prevented by file size as well. Why 1MB only?!


author: Andreas Petrov
body: Stumbled into this problem now. Still had to resort to online search to understand the problem, and it's Feb. 2017