youngmon/atlassian-qna huggingface dataset:
Old Pipeline, Used for a Few Years - Now Failing
Asked by Christian Griffith:

We use Bitbucket to manage and compile our main SASS repo. The pipeline in question is very basic and uses Node and SASS to compile and compress CSS for the front-end (also generates a source map file for debugging).

I setup the pipeline YAML a few years back, and it's worked fine for a good while. Now, today, when trying to run the pipeline, it fails when it reaches the following line:

*sass --style=compressed --embed-sources sass/styles-main.scss compiled-www-stylesheet/styles-main.css*

**Error Message:** *ReferenceError: globalThis is not defined...*

I appreciate any/all suggestions!!!


Answers:
author: Christian Griffith
body: I think I've got it fixed---updated the "image" line of the pipeline to: *image: atlassian/default-image:3*

We were using default-image:2 before...


Tags: bitbucket-cloud

cloud

node

sass

yaml
"stage selected lines" and then "commit only those lines" now commits entire containing file
Asked by Oli:

I recently noticed that the "stage selected lines" and then "commit only those lines" stopped working. It is now committing the entire file.

If I have a file with 20+ lines changed lines in it, say lines 1-20

and I want to make one commit with lines 3-8

and then another commit with lines 1-2, 9-20

My usual work flow was to select those lines and then click Commit.  

As of two attempts recently this commits the whole file not just those lines.  

I'm on macOS 10.12.6 and Sourcetree 2.7.6  

I've now switched to use Sourcetree to stage the specific lines and commit within my command line as that does seem to be working.  

My previous workflow appeared to work as expected 48 hours ago.


Answers:
author: mikkolauhakari
body: I'm experiencing this problem now, with version 3.1.2  

I stage lines from a file, write a commit message and hit "commit", and the whole file gets committed. This is very frustrating!  
Being able to commit selected files so easy is one of my favorite features on SourceTree.

Any advice appreciated.

comments: author: mikkolauhakari
body: Correction. Updated to newest +4 version och still same.  
Might be something locally, but what could stage the rest of the file outside of Sourcetree?


author: Philippe Dey
body: Hi,

Sorry to dig out this subject, but as a long time user of SourceTree, I still lack this function that was very useful in older versions such as the 2.7.x.

As the "Commit selected..." action is still in the UI of version 4.1.7, I assume that it is still a bug to not be able to keep the selected/staged files selected once in the commit screen.

Would be great to correct this in a near future...

Thanks in advance!


author: bgannin
body: Hi [@Oli](/t5/user/viewprofilepage/user-id/1196402),

We're not aware of any issues in this area with 2.7.6. There aren't any remote interactions that can affect Sourcetree's behavior; the only way we would cause a change for you is if you download a new update of the app.

Are you using embedded or system Git (check the app's preferences)? What version is it?

Brian Ganninger  
Principal Developer, Sourcetree

comments: author: reubens
body: Using Sourcetree 4.0.1 and just updated macOS to 10.15.4 from macOS High Sierra and now staging lines no longer works. The whole file is moved into the staged area but also remains in the unstaged area.

Correction - was during uncommitted merge. macOS update was just coincidence.


Tags: mac
Fps drop
Asked by dquaglio92:

Hi, I know the title is strange. When I open and focus SourceTree, the fps drop significantly, from 144 to 7/8 fps.   
The operations like pulling or pushing are not slow or anything, but the whole interface and system become unstable and laggish. The mouse itself moves jerkily and it's pretty annoying.


Answers:
author: blueblau
body: I found a solution to my problem. It was because G-sync was enabled. The same issue was present on Spotify so I searched their community pages, and found this.

<https://community.spotify.com/t5/Desktop-Windows/Low-Frame-Rate-with-Desktop-App/td-p/4617800>

... my solution is somewhat this, I just disabled G-sync when using these two apps.

comments: author: dquaglio92
body: [@bgannin](/t5/user/viewprofilepage/user-id/744444)


author: dquaglio92
body: Well, this is what I would call a workaround, not a real fix.. I would expect an application to keep working as intended even with Gsync enabled.


author: Josiah Conrad
body: Unfortunately Blueblau's answer didn't work for me. What's more is my entire development suite was behaving this way. This is what ended up fixing it for me:

1) Close the applications having issues.  
2) Right click the shortcut \> properties \> Compatibility tab  
3) Check 'Disable fullscreen optimizations'.  
4) Apply \> Ok \> Cross your fingers and relaunch applications.

If that doesn't work, it may be worth trying to run it in compatibility mode as well. I know that's fixed some application issues I've had in the past.


author: bgannin
body: Hi [@dquaglio92](/t5/user/viewprofilepage/user-id/1900659),

What version are you using and on what platform?

Thanks,

Brian Ganninger  
Principal Developer, Sourcetree

comments: author: dquaglio92
body: Hi, I'm on windows 10 and the version of SourceTree is 3.0.17.2659


author: blueblau
body: Came here from a Google search. Fresh install and experienced this exact same issue, immediately after logging in for the first time (with Google). My SourceTree version is 3.0.17. Don't know the exact build number.

Sluggish mouse movement when application is in focus. Fine when in background. CPU isn't affected. Seems to be only the mouse cursor that is.

**My machine:** Windows 10  
ASUS Nvidia GTX 1080ti  
32GB Corsair Vengeance LPX DDR4-3000 DC RAM   
Samsung Evo 850 500GB SSD
installation is confusing due to login to atlassian
Asked by b0ris_g:

i hade to restart installer several times before it finally was able to pass the initial step for account use / creation


Answers:
author: Ana Retamal
body: Hi, welcome to the Community and thank you for posting!

Seems like you were finally able to log in, is that right? Were you having an issue trying to register Sourcetree during the initial steps?

Is there anything else we could do to help you?  
Best regards,

Ana
Sourcetree hangs on installation windows 7 IE 11
Asked by Dale Walkowicz:

Run SourceTreeSetup-3.0.17.exe

Get to Registration screen and click "Bitbucket"

Launches IE and login successful

Authentication Successful {#toc-hId--1444017076}
------------------------------------------------

SourceTree has been successfully authenticated. You may now close this page.

Installer stays on Registration page and Next button never becomes active

Tried Uninstall, clear IE catch, etc. many times. Nothing works.

Help!


Answers:
author: minnsey
body: Hi  

We can't currently reproduce this at the moment, can you try changing your default browser to something other than IE?

comments: author: Olli Kallioinen
body: I'm experiencing the same problem with 3.1.2. I'm guessing it's probably some kind of company firewall/proxy issue.

It's strange that the browser connects to localhost OK, but our company has all kind of restrictions for network usage and they are somehow interfering with the rest of the registration process.

I have to say that even though I really like Sourcetree I can't recommend it to my friends/co-workers because requiring registration is such a dick move (In addition to not actually working in our company network).


author: Juha
body: I'm experiencing the same problem with versions 3.1.2 and 3.1.3. I have Windows 7 Home Premium with SP1 and my default browser is Google Chrome (the latest version).

I have only Bitbucker remote repository in Sourcetree program and I don't have connect it to local working directory. I have used Sourcetree program in my local working directories and repositories. Sourcetree program hangs when its window is behind the others windows after a few minutes. Then I must I kill SourceTree.exe process.

I started Sourcetree program again and I deleted all local working directory bookmarks. After that I hided Sourcetree window behind the other windows and waited...

Sourcetree programs hanged but now I see also window with title "Accept server's key?" and it says "The key for the server 'github.com' hasn't been cached yet, and this has caused the process to fail. ...". One of my delete local working directory was made by external git.exe program and that directory was connect to remote repository (github.com). In my Windows 7 process list has couple of git.exe process even I have didn't use Git for Windows program.

I think that hangs of program cause that "Accecpt server's keys?" window is missing when Sourcetree program is behind the others windows.


author: Shahzeb Malik
body: Also experiencing this issue.


author: Dor_Ben-Dayan
body: I am experiencing the same issue.

sourcetree installation wont continue after "austhentication successful" and "next" button remains inactive.

I have tried this with both chrome and ie11.

I have tried clearing cache, removing appdata files, reducing internet security options to "low" but nothing worked.  

user name and pass work well when connecting to website.


Tags: install

registration
Sourcetree does not list private GitHub repos
Asked by Daniel Pfeffer:

I've added my GitHub account to the remote repositories in Sourcetree. Much to my surprise, I cannot see my private repositories.

After some research, I found out, that the API call to https://api.github.com/users/\<username\>/repos only lists my public repositories - and this is what Sourcetree seems to call.

A call of <https://api.github.com/user/repos>**?access_token=512295a0afb73bdd1c076a00c69f8abcd12345 (fill in a valid Access Token)**instead shows all public/private repos.

Can you please add the option to specify an access token, so that private repositories are listed as well?


Answers:
author: minnsey
body: Hi  

Which version of Sourcetree are you using?  

Sourcetree for Windows will add credentials, but via headers rather than as part of the query string.

comments: author: Daniel Pfeffer
body: Hello,

I am using version 3.0.17 on Windows.


author: minnsey
body: Hi  

I've tried reproducing this but currently I can't.  

Are the private repositories ones you own or ones you have access through an organization or owned by others?


author: Daniel Pfeffer
body: Both - and unfortunately I am shown neither in Sourcetree.

Have you tried to setup a private repository in Github and did it show up in Sourcetree?


author: minnsey
body: Hi  

We have identified the issue and have a fix in progress. It probably won't make the next release but should be in the one following.  

It wasn't immediately obvious as we have a large number of repositories and the privates ones **do** show up when you search.  

Mike


author: Daniel Pfeffer
body: I'm glad you could reproduce what I was experiencing.

And in fact, I get my private repositories listed, when using the search function.

Looking forward to the fix.


author: FeraTaTa
body: Just to hop onto the back of this, I have experienced the exact same issue and I can successfully search for my own private repos but I cannot see a private repo that I have forked from another user.


author: minnsey
body: Fix should be going out to Beta testers in the next few days.


author: tonydehnke
body: Any update on a fix for this [@minnsey](/t5/user/viewprofilepage/user-id/502201) I added my Github account to Sourcetree today on my Mac and I'm unable to view the private repos I own on Github


author: minnsey
body: I believe the fix is now released for Windows, for mac can you please raise an issue at <https://jira.atlassian.com>  

<br />


author: tonydehnke
body: Ok - I've added it: <https://jira.atlassian.com/browse/SRCTREE-6653>


author: Daniel Pfeffer
body: Resolved here: <https://product-downloads.atlassian.com/software/sourcetree/windows/ga/ReleaseNotes_3.1.3.html>
Invalid username or password
Asked by merv0190:

fatal: HttpRequestException encountered.  
An error occurred while sending the request.

remote: Invalid username or password  
fatal: Authentication failed for 'https://merv0190@bitbucket.org/merv0190/apache.git/'

Pushing to https://merv0190@bitbucket.org/merv0190/apache.git  
Completed with errors, see above.

I keep getting this error. After updating my password. The atlassian login popup keep showing after filling the new password.

I have no idea what to do.


Answers:
author: minnsey
body: Hi  

My first suggestion would be to make sure you are using Git 2.20.1, either but updating to Sourcetree 3.0.17 and updating the embedded Git or by installing Git for Windows and using it as a System Git.  

This as the latest version of the Git Credential Manager, GCM, which fixes some problems it had with storing credentials.  

I'd then suggest deleting all the 'git:' prefixed entries in the Windows Credential Manager, this means any local *bad* credentials are removed.  

I'd also do an explicit logout/login on the bitbucket website to clear any potential locks due to too many failed login attempts.  

Then run a pull/fetch/push etc you should be prompted for credentials, enter the correct ones and it should work and store the credentials so you aren't prompted again.

comments: author: merv0190
body: Thank you for responding.

I updated source tree to the latest version and I added my account in the account section in settings. Now everything works again.

Thanks!
SourceTree??????????Registration????????????
Asked by kawagoe.masafum:

Bitbucket???????????IE?????????????

Registration?????Bitbucket??????????IE???????????????????????????????????????????????Authentication Successfuls???????????????????????Registration??????????????


Answers:
author: Ai Hirama
body: ?????????????????????????

???????????????????????????????Chrome??????????????????????????

????????????????

comments: author: kawagoe.masafum
body: ????????Chrome?????????????????????????????????????Authentication Successfuls??????????????

URL??????????

http://localhost:34106/?state=authenticated\&code=XXXXXXXXXXX

??????????????????????????????????????


author: Ai Hirama
body: ??????????????

???????????????????????????????????????????

<https://community.atlassian.com/t5/Sourcetree-questions/Authentication-Successful-s-%E3%81%A8-%E8%A1%A8%E7%A4%BA%E3%81%95%E3%82%8C%E3%82%8B/qaq-p/1023234>


Tags: atlassian-support

bitbucket

language-ja
Is there a way to filter the local and remote branches & stashes?
Asked by David Lee:

My source tree list is getting huge of local branches and remote branches.

Is there a way to filter the list so it only shows certain branches?

Thanks


Answers:
author: bgannin
body: Hi [@David Lee](/t5/user/viewprofilepage/user-id/1171447),

There's not currently an option to do so but it's a great suggestion. I don't know the ticket numbers offhand but I suspect there are a couple you could vote, watch, and comment on in our public trackers ([Mac](https://jira.atlassian.com/browse/SRCTREE/), [Windows](https://jira.atlassian.com/browse/SRCTREEWIN/).) Doing this helps us prioritize when planning future releases. Thanks for your input!

Brian Ganninger  
Principal Developer, Sourcetree
SourceTree Mac consistently locks up when opening repository settings
Asked by bunny hero:

Any hints on troubleshooting this? I assume this doesn't happen to everyone.

Steps to reproduce:

1. Open SourceTree on Mac (version 3.1.1)
2. Open repository
3. Click the "Settings" icon in the toolbar, OR use the keyboard shortcut (shift+command+,)

**Expected result:**

Repository settings pane opens

**Actual result:**

Beachball of death

**Notes:**

This used to work fine. I now have to use the command line to add or remove remotes.


Answers:
author: bgannin
body: Hi [@bunny hero](/t5/user/viewprofilepage/user-id/1130060),

Our apologies for the hassle. I'll see what we can reproduce here. Does this with any repository you interact with or only a particular one?

Brian Ganninger  
Principal Developer, Sourcetree

comments: author: bunny hero
body: it happens with any repository.

thank you.


author: bunny hero
body: [@bgannin](/t5/user/viewprofilepage/user-id/744444) anything else i can do to troubleshoot this? lately it happens maybe 50% of the time i try to open repository settings. on any repository


author: bgannin
body: I'll ping QA to take a look and then circle back with the code next week.
Error 'fatal: Authentication failed' when trying to do pull
Asked by rrybatc:

I am receving this error when trying to do pull (after typing pass)

But pass works ok for logging into Atlassian Account.

What causes this?


Answers:
author: minnsey
body: Hi  

I would ensure you are running Git 2.20.1 or higher, either but updating Sourcetree to v2.0.17 and then updating the embedded Git in the Tools/Options/Git tab or by installing Git for Windows 2.20.1 directly and configuring Sourcetree to use it as a System Git in Tools/Options/Git.  

There were some problems with the Git Credential Manager GCM that is bundled with Git for Windows and that error sounds like one of them

comments: author: rrybatc
body: Hi Michael

Thank you, updating git helped.
Sourcetree (v 3.1.1) not allowing me to pull from github with two-factor auth enabled on github
Asked by Jeffrey Ha:

I've been using my password for github just fine on Sourcetree without 2FA, but Sourcetree has stopped being able to pull from github when I enabled 2FA on github. Sourcetree asks me to enter in my password to github when fetching from my repo, but it doesn't work when I enter it.

I've tried using the latest embedded git (2.20.1), and the latest system git (2.20.1); both failed to resolve the issue.

I'm not the owner/admin of the github repo I'm working on.

I'm currently on macOS Mojave (10.14.3)


Answers:
author: bgannin
body: Hi [@Jeffrey Ha](/t5/user/viewprofilepage/user-id/999124),

Could you try deleting and re-adding your GitHub account (not the repository) in Sourcetree, choosing OAuth for authentication, to see if that works properly for you after that?

Thanks,

Brian Ganninger  
Principal Developer, Sourcetree


Tags: authentication

github

mac
RStudio crashes when installing SourceTree
Asked by cyriacs:

Hello,

I'm sure this question was already made before, so I apologize for the redundancy.

My RStudio (Desktop Open Source License) crashes systematically when I install SourceTree from here (<https://www.sourcetreeapp.com/>). I tried installing GIT from here (), but RStudio crashes too. So I turned to my regular RStudio with no GIT app.

What happen and how can I solve it.

Thanks,

Cyriac


Answers:
author: cyriacs
body: Thanks Michael,

++[RStudio](http://www.rstudio.com/)++ provides an integrated development environment for R users. I use it for all my R works.

Yes, RStudio crashed with this Git (<https://www.git-scm.com/>) install too. Maybe it requires an upgrade to the pay version before using a GIT

comments: author: minnsey
body: Yes, I'm afraid it seems to be an issues with RStudio vs got rather than Sourcetree directly. I'm not sure we can help.


author: cyriacs
body: That's fine Michael, Thanks.


author: minnsey
body: Hi  

We have no experience of RStudio, can you provide any more details? Did you say it crashes with a normal Git install as well? No Sourcetree?


Tags: bitbucket
how to add files to git
Asked by cjpatel1989:

i want to add my local file on git where i have created folders.


Answers:
author: bgannin
body: Hi [@cjpatel1989](/t5/user/viewprofilepage/user-id/2754847),

Please take a look at [this documentation](https://confluence.atlassian.com/get-started-with-sourcetree/commit-and-push-a-change-git-847359114.html) and see if it helps.

Brian Ganninger  
Principal Developer, Sourcetree

comments: author: cjpatel1989
body: Thanks Brian for response,

Is there any way to use this method via using terminal ?


author: Ana Retamal
body: Hi [@cjpatel1989](/t5/user/viewprofilepage/user-id/2754847) , git was originally made to be used in the terminal, so yes, you can do that. If the terminal is your preference, then we also have [these tutorials](https://www.atlassian.com/git/tutorials) that can help you.

Kind regards,

Ana
SourceTree Bug git repository crashes program
Asked by SupaHam:

I've been having difficulties with SourceTree crashing every time I click on a repo tab. After some messing around it turned out to be the sourcetreeconfig and sourcetreeconfig.json files generated in the repository's .git directory were the problem. Just deleting them solved the problem, they don't contain any important information.


Answers:
author: SupaHam
body: I'm not sure what version I had, but I currently have 2.5.5.0

I only renamed the files when this happened. My sourcetreeconfig.json file is empty, and sourcetreeconfig has:

```
<?xml version="1.0"?>
<RepositoryCustomSettings xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<AutoRefresh>true</AutoRefresh>
<AutoRefreshRemotes>true</AutoRefreshRemotes>
<CommitTextLinks />
<IncomingSavedCount>0</IncomingSavedCount>
<LastCheckedRemotes>2018-01-28T22:13:15.0850599+00:00</LastCheckedRemotes>
<LastUsedView>FileStatus</LastUsedView>
<LogBranchFilterIndex>0</LogBranchFilterIndex>
<OutgoingSavedCount>0</OutgoingSavedCount>
<RemoteProjectLinks />
<SidebarExpandedItems>
<string>File Status</string>
<string>Branches</string>
</SidebarExpandedItems>
<SidebarWidth>210</SidebarWidth>
<SubtreeLinks />
</RepositoryCustomSettings>
```

comments: author: minnsey
body: Ah, Could you update to 3.0.17? There were some issues with parking that file which are now fixed.


author: minnsey
body: Hi  

Thanks for the update, can I ask what version of Sourcetree you were running? And if it happens again could you post up one of the *bad* files?
Can I see a history of which branches I have deleted from origin?
Asked by Dean Stevenson:

I used the Sourcetree UI to delete local and remote versions of branches. I'd like to see in hindsight what I've deleted. I'm hoping there is a command history that captures it or something similar. Thanks!


Answers:
author: Mikael Sandberg
body: Hi Dean,

Welcome to Atlassian Community.

Branches in Git are just pointers to different commits and moves when a new commit is added to that branch. Once you delete a branch, there is not history of it, unless you rely on the automatic comment when you do a merge. So the answer is no, there is no command in Git, or action in Sourcetree, that would give you a list of deleted branches.

comments: author: Dean Stevenson
body: Thank you for clarifying!
merge commit: How to see "combined diff" - code changed in merge commit / conflict resolution
Asked by Piotr:

Hi,

I want to see what "extra" changes were done in merge commit. In command line it can be done with "git show" which produces "combined diff", as described e.g. here: <https://stackoverflow.com/questions/45253550/how-to-check-if-a-merge-commit-contains-manual-changes-e-g-resolved-conflicts>

In tortoisegit I can right click on merge commit and select "Unified diff with \> show extra changes after merge".

Is something similar possible in SourceTree directly? Could not find anything...


Answers:
author: minnsey
body: Hi  

I'm afraid I don't think you can do that currently in Sourcetree, the only place we use *git show* the command you refer to in a place where you might see that information is in the interactive rebase dialogs.