youngmon/atlassian-qna huggingface dataset:
my sourcetree stuck on this step, please help me.
Asked by Dias Saputra:

i using windows 10 32-bit

![Capture.PNG](/t5/image/serverpage/image-id/14032i59C2A30CBA88B60C/image-size/large?v=v2&px=999 "Capture.PNG")


Answers:
author: Ana Retamal
body: Hi Dias! Can you try updating Internet Explorer to the latest version? Sourcetree relies on it for authentication and we've seen other cases where an old IE version was causing this issue.

Let us know if that helped you!

Best regards,

Ana
SourceTree what files will be Pushed
Asked by Joe Smith:

Hi,

When the Push badge indicates that files are ready to be pushed, how can I see what files will be pushed? And revert the files to the remote archive version if needed?

Thanks.


Answers:
author: Refael Raz
body: I'd glad to get an answer as well


author: Jay Philoon
body: If you look at the local branch history tree, the most recent, unpushed commits will have a "develop" marker at the head. Commits pushed to the server will have an "origin/develop" marker at the head.


author: bgannin
body: The push badge indicates the number of local commits (not files individually) that have not been to a remote server.

There isn't an explicit way to filter commits based on whether or not they have been pushed though you can filter to a particular branch if that's what you've been working on primarily.

The only way to undo is to "Reverse Commit..." but this will create another commit to track that reversal.

Hopefully that clears things up a bit.

Brian Ganninger  
Senior Mac Developer, Sourcetree

comments: author: Chris Goodwin - x2256
body: I think I have the same question as Joe Smith and the response doesn't answer it for me.

My branch says there is a commit to be pushed and I want to see what files have been modified in that commit and what those mods are.

File status does not show any modified or staged files.
SourceTree slowness
Asked by Sneha Bhasin:

Hi Team,

I work for Unilever and would like to have your input related to Sourcetree issue.

We have installed BitBucket server on Linux machine as part of proof of concept and are able to do push/pull/commit from Linux machine through Git client.

However when we tried to access the repository through Sourcetree client from the Virtual machine (through Microsoft RD Web Access), the client is not responding and keep getting hung. I need support teams input on following points:

1. Does Sourcetree runs on Windows Virtual machines, where users access the tool through Citrix or RD Web Access?
2. What's Sourcetree's expected system resource consumption, how much CPU, Memory would it consume for a 4GB repository?
3. Is there any standard Citrix/VM server sizing for SourceTree application?


Answers:
author: Mike Corsaro
body: Hello! So there's a lot of layers here, but first let's answer your questions:

1. Sourcetree does run on a VM, but will run slower as it has to deal with running in a VM, and over RDP at the same time

2. It really depends on the repository. If it has a lot of history (the .git folder is \> 1GB) then it will be naturally slower on the command-line and in Sourcetree. You can gather more detailed statistics by running a Repository Benchmark (open Sourcetree -\> Repository -\> Benchmark Repository Performance, and upload the JSON file). Additionally, you can open "Tool -\> Process Viewer..." and find which operation is taking the longest to run.

3. We don't have a standard VM server size requirement for Sourcetree, but I'd recommend no less than 4GB of RAM and at least a dual-core CPU.

comments: author: Sneha Bhasin
body: Thanks Mike.

This information does help me


author: Sneha Bhasin
body: [@Mike Corsaro](/t5/user/viewprofilepage/user-id/842547)

Hi Mike,

Can you comment on the windows servers that are compatible with sourcetree.

What basic version of windows server supports SourceTree. Is windows 8 server compatible ?
Problem connecting
Asked by or zilber:

HI

Im using source tree for over then 1 month after reset yesterday i found myself could not open it today because my licence expired, after registration i could not download the it.

what can i do?


Answers:
author: Ana Retamal
body: Hi! Sourcetree doesn't need a license, you just need to register it with your Atlassian account during the installation process. Can you answer the following so we can help you better:

- What kind of issue are you getting exactly? Can you provide a screenshot?

- What do you mean by "after reset yesterday i found myself could not open it today"? What did you reset?

- Which Sourcetree and OS version are you using?

Best regards,

Ana
Custom actions with custom parameters
Asked by migs911:

What is the best way to use my custom parameters in Custom Actions? Is it possible?  
For example:  
I'm using tool for Gerrit, "git review". And when i want to download some review, i need to write command:  
git review -d 12345

where 12345 - is a number of review and it's always different. Is it possible to create Custom Action, where it will ask me to write this number and then it will run follow command with passed review number:  
git review -d $REVNUM


Answers:
author: bgannin
body: Currently there are only three replacement tokens available for custom actions. Please vote, comment, or file an appropriate ticket for additional functionality. Having an interactive custom action workflow is a new request AFAIK.

Mac: <https://jira.atlassian.com/browse/SRCTREE>  
Win: <https://jira.atlassian.com/browse/SRCTREEWIN>

![Screen Shot 2018-02-02 at 10.24.57 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/13934iD77DA98C022A4861/image-dimensions/436x79?v=v2 "Screen Shot 2018-02-02 at 10.24.57 AM.png")

comments: author: lsloan_umich
body: Maybe it's poor form to reply to an ***old***conversation, but here goes anyway...

I found this thread while searching for "sourcetree custom actions variables". I think SourceTree should provide variables with...

* URL of remote repo
* name of current branch
* name of branch selected in GUI

My desire is to make a custom action to open a remote repo (e.g., GitHub) in a browser, showing the specific branch selected. For example, when I'm viewing the list of commits in the repo and I see a badge on it like "origin/6", I want to create a custom action for that badge that would open my web browser, loading the remote GitHub repo to show that specific branch.
Git and SourceTree is freware for commercial or not?
Asked by Sasiphan Ngammaneewat:

I would like to ask for the evidence for confirmation that Git and SourceTree is stiil freeware for commercial and Open Source or not


Answers:
author: bgannin
body: Sourcetree is free for users and has no limitations, you simply need to sign in with an Atlassian account. It is not open source and has not been previously. Git is entirely independent project, not from Atlassian, and will be [open source forever most likely](https://git-scm.com/about/free-and-open-source).

Sourcetree presents you the [customer agreement](https://www.atlassian.com/legal/customer-agreement) during setup to review before continuing. In the About dialog you'll find links to licenses for individual resources like Git, Mercurial, GitFlow AVH, Git-LFS, and more.

Brian Ganninger  
Senior Mac Developer, Sourcetree

comments: author: Sasiphan Ngammaneewat
body: Thank you so much for your answer\^\^
How to "force" push?
Asked by jeremiedesautels:

When I click the "Push" button in the SourceTree window I get a window asking me to select the desired branch and at the bottom of this window there is an option to "Force Push" (which is necessary after a rebase). Unfortunately, this option is grayed-out and I am not able to select it. Why is this option not selectable?

I'm using Sourcetree 2.4.7.0 on Windows 10  


Answers:
author: Mike Corsaro
body: Hello! A force push is a potentially dangerous operation as it rewrites history, therefore the ability to do so is locked behind a setting in the Options menu:

![forcepush.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/13925i110FDEB2CC497BDD/image-dimensions/463x408?v=v2 "forcepush.PNG")

comments: author: jeremiedesautels
body: Thank you Mike. I found the option you mention and indeed "Force Push" is now selectable. Thanks.

By the way, when did this change? I have been using Sourcetree for a long time and I don't remember ever having to enable "Force push".


author: Mike Corsaro
body: This change happened quite a long time ago -- around version 1.9 which was released in Dec of 2016


author: jeremiedesautels
body: That's surprising because I have been rebasing and force pushing in 2017. It's only in the last few weeks (maybe few months, I can't remember exactly when I noticed this issue) that the option became grayed out and prevented me from force pushing.

Anyway... it's working now so I'm happy.


author: jeremiedesautels
body: One more comment: in order for me to force push I have to check the "Force Push" checkbox in the "Push" window, and then I get another window telling me that "one or more branch is selected to force push. This may result in a destructive operation" and asking me to confirm that I really want to force push. Is a "Enable Force Push" global setting really necessary? I understand force pushing is potentially dangerous but I must already take two actions to demonstrate that I really want to perform this action. Is a third failsafe really necessary?

If Atlassian feels that this global setting is necessary, I suggest a tooltip that would show up when I hover my mouse over the grayed out "Force Push" and would say something like: "in order to enable this option you must enable the global option and thus demonstrate that you understand the potentially dangerous nature of force pushing".


author: Jim Bergman
body: Sourcetree for the Mac has **Allow force push** under the Advanced tab in Preferences.


Tags: windows
com.google.GTMOAuth2 error 1001 in Sourcetree connecting to GitHub
Asked by G?V?N:

Have added my GitHub account with OAuth. When enumerating remotes the following error continuously pops up.

The operation couldn't be completed. (com.google.GTMOAuth2 error -1001.)

I have cleared all relevant items from macOS Keychain and and deleted \~/Library/Application Support/Sourcetree, readded my GitHub account the the issue persists.

Please help.


Answers:
author: henrygibson
body: It's now June 2020 and still getting this problem. Trying to access remote repos on Github in Sourcetree - continually fails - really annoying.


author: rhhsallinggroup
body: Did this get fixed I am encountering it?


author: Manju
body: Hi Gavin,

That's an authorization error which means that Sourcetree couldn't get an authorization rom GitHub with the token available. Can you remove the account from Sourcetree and add it back again? Your old token could just be cached. Relaunch Sourcetree once to see if it helps.

Thanks!

comments: author: G?V?N
body: Hi Manjunath,

I have tried the following with no success:

* removing the account
* closing sourcetree
* clearing the items from Keychain
* deleting \~/Library/App Support/...
* Clearing all my tokens and keys from GutHub

Any other ideas?


author: Manju
body: Can you uninstall Sourcetree and fo a fresh install?

You can restart the mac once after removing Sourcetree.


Tags: authentication

github
How to remove annoying pop up asking for password?
Asked by Viktor Andersson:

Hey,

I've been lately having this issue with a pop up window asking for my password. I've logged into my bitbucket account, I've deleted and added my user on Sourcetree and made sure that the password is valid. However, this message won't go away. Any advice?

![Screen Shot 2018-02-01 at 19.08.20.png](/t5/image/serverpage/image-id/13787i1F87E750D60DBC16/image-size/large?v=v2&px=999 "Screen Shot 2018-02-01 at 19.08.20.png")


Answers:
author: Manju
body: Try removing any keychain items saved for the bitbucket account and add the account in Sourcetree's preferences. And when you do, please double check that the new items were added to keychain and are accessible to Sourcetree.

comments: author: Viktor Andersson
body: Thanks for they reply. I've connected my bitbucket account on Sourcetree and I've deleted all old keychains from my keychain library, but the new ones aren't created. Therefore, when I try to clone from bitbucket, push or pull on Sourcetree, all I get is the pop up that won't go away even though I give the correct username and password.![Screen Shot 2018-02-04 at 17.19.31.png](https://community.atlassian.com/t5/image/serverpage/image-id/13977i487658391393AF3C/image-size/large?v=v2&px=999 "Screen Shot 2018-02-04 at 17.19.31.png")
Git Bitbucket Credential Manager for Windows periodically pops up.
Asked by Stephen Davis:

Periodically (every few minutes) the credential manager for Bitbucket/Atlassian shows up when I am running Sourcetree. I can cancel the popup window and go to my authentication options in Sourcetree. I have three accounts connected: two GitHub and one Bitbucket. I use OAuth on all three accounts, but it seems the authentication for Bitbucket expires and I must go through the process of refreshing the token. Neither GitHub authentication tokens expire.

I can refresh my Bitbucket account without any issues, but then it will expire and I will get the credential manager popup within minutes.


Answers:
author: minnsey
body: Hi  

The Bitbucket access_tokens do expire after 1 hour, GitHub last 1 year. However the Git Credential Manager should be storing a refresh_token which will allow it to automatically get a new access_token for Bitbucket.  

Because Bitbucket OAuth support was only added to the Git Credential Manager (GCM) from version 1.10+ I have experienced similar issues where, for example I have files from a Btbucket repository open in Visual Studio Code that is running an older version of Git/GCM that does not understand about refresh_tokens, it can then end up effectively invalidating and wiping the refresh_token, causing the 'good' GCM to have to re-authenticate.  

I would double check you are running a consistent Git environment, with Git \>= 2.15


Tags: authentication

bitbucket

credential

oauth
Can't install SourceTree due to login problems
Asked by Sandra Fernandes:

The login step in the installation is freezing.

I tried in IE11 and get the error "Oops, you've made a malformed request".

Tried restarting the browser, changing the security settings and enabling ""Access data sources across domains"

In chrome the login suceeds in the same machine.


Answers:
author: Andy Heinzer
body: Hi Sandra,

This problem has been reported on our forums before. Please see <https://community.atlassian.com/t5/Sourcetree-questions/Can-t-install-SourceTree-due-to-login-problems/qaq-p/648705> for more details.

On that thread Michael provides a pretty in depth set of steps to check:
> The login process relies on IE, as this underpins the WF webview.  
>
> **Workaround**
>
> At a minimum IE needs to be configured as follows:
>
> Cog/Internet options/Security settings need to be enabled
>
> * Misc/Access data sources across domains
> * Misc/Allow META-REFRESH
> * Scripting/Active Scripting
>
> * The browser mode set to 10
> * The document mode set to 10
>
> These can be set using the F12 developer tools.
>
> Those are the settings that matter. It should also be able to set them indirectly by:
>
> * making sure [https://id.atlassian.com](https://id.atlassian.com/) is NOT set to be rendered in Compatibility Mode
> * Set Cog/Internet options/Security to Medium-High


Tags: login

windows
Is there a way to change a file that currently shown as added and removed to renamed?
Asked by Stan Benedict:

I am working on a git repository using sourcetree. I made some significant structural changes to my project including renaming files and folders. Is there any way to indicate that a new file path is replacing the old file path so as to be able to track internal changes that were made to the files?


Answers:
author: Mike Corsaro
body: Hello! Git should be able to automatically track renames without needing to do anything (remember: git tracks content, not files). When tracking changes to a file in Sourcetree (right clicking on a file and selecting 'Log selected...'), make sure you check the "Follow renamed files" checkbox which should give you the correct history.

comments: author: Stan Benedict
body: Thank you for the help!
Keybase git support?
Asked by Rand Arnold:

I've been poking around Keybase's git support <https://keybase.io/blog/encrypted-git-for-everyone>, however, I'm not having any luck integrating with SourceTree.

I'm not the only one <https://github.com/keybase/keybase-issues/issues/3084>

Has anybody got this working?


Answers:
author: minnsey
body: Hi  

We do not formally support this at this time and haven't explicitly tested for it. Thanks for raising this though.
In Sourcetree I see a window with 3 tabs. Why don't I see the "Bookmarks window" ala online Help?
Asked by steve:

I will give my context. I just installed Sourcetree. The version is 2.4.7.0, and I am running Windows 7.


Answers:
author: minnsey
body: Hi  

The Bookmarks sidebar was remove in version 2.0, replaced by the 'New tab'
Sourcetree fails to authenticate again and again (Windows + Mac + everywhere)
Asked by Mitch Furlong - YourCreative:

So, I'm sort of at my wit's end here.

Everyone in my team is set up with SourceTree:

* On both on Windows and Mac
* Some with HTTPS and some with SSH (and some trying to just use username + password)
* Some using embedded Git, some using system Git

...and every single person cannot stay authenticated. We can log in and it can push, but if you reopen it and try to push, you get the classic "fatal: Authentication failed" issue. Every day.

I feel like we've covered every possible base - Is anyone able to shed any light on why this just, keeps happening?


Answers:
author: Manju
body: My first suggestion is to regularize using either https or ssh and not both.

Next, if you are using ssh; please make sure your ssh-agent has loaded your keys.

Run below commands in terminal to do so,

To check if keys are loaded:

```
ssh-add -l
```

If none found, add keys to agent:

```
ssh-add <path_to_key>
```

more like,

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

Key in the passphrase used while generating the ssh key and you should be good to go.
SSH key authentication password prompting
Asked by MarcelGeo:

I have SSH key generated on Windows 10. On our git server, we applied public key for SSH key authentication. Source tree is connected on git server, but on pushing to server is promtping for password.

$ git push origin branch  
git@OURGITREPO's password:  
fatal: Could not read from remote repository.

How to dissable password, or whats password?


Answers:
author: Mike Corsaro
body: Hello! It sounds like the URL for the remote is configured for HTTPS rather than SSH. Could you check the URL of the repo for me?

* Open the repo
* Click "Settings"
* Double-click on the first item in the "Remote repository paths" list
* Check the URL / Path
  * SSH paths look like this: git@contoso.com:ORG/REPO.git
  * HTTPS paths look like this: <https://contoso.com/ORG/REPO.git>

If the URL / Path matches the SSH pattern, then could you run the following command for me?

* Open the repo
* Click "Terminal"
* Type: git remote -v
* Check the output and see what pattern it has

Thanks!

comments: author: MarcelGeo
body: The url is right.

git remote -v

origin git@\[IPADDRESS\]:/data/code/hej.git (fetch)  
origin git@\[IPADDRESS\]:/data/code/hej.git (push)

The url is right, becase with gui functions, it is possible to make all actions (push, fetch .... )

By opened Terminal, it is not possible


author: Mike Corsaro
body: So if I understand correctly, pushing works in Sourcetree but not via command line?
Equivalent of a git show on a specific commit
Asked by Seth Willits:

Briefly: What's the SourceTree equivalent of:

`git show 946a759:File.h`

*** ** * ** ***

More thorougly:

1. File.h *did not change* in commit 946a759, I just want to see the contents of the file as it was at the time of that commit.

2. I do know that I *could* change the Log View - Working Copy view to show *all* of my files, find the file in the list, right-click on it and choose "Log Selected", find the commit (or the next oldest one) but

   * That's a cumbersome process
   * I don't want to change the Log View's setup to show all files
   * It's really difficult to find a random file in that huge long list of files.

*** ** * ** ***

So what I'd like to do is be in the Log View with my master branch selected in the left sidebar, find the particular commit in the tree, and then do the equivalent of git show rev:AnyFileIWant. I'd be just fine typing in the path to the file.

I can't seem to find a way to do this?


Answers:
author: Manju
body: I don't think we have something similar available on sourcetree. However, you can select the given file in a commit and from the contextual menu click on "Log Selected" to see all the various modifications of that given file. Thought this doesn't exactly do the same as what you need, if you have an idea of the date of modification, you can figure out which version to look at.

comments: author: Seth Willits
body: That's what I figured. It'd be a useful feature to have, to be able to browse the tree and view contents at any revision.


author: Manju
body: Feel free to submit a feature request on <https://jira.atlassian.com/projects/SRCTREE/> and vote on it for inclusion in an upcoming release.