youngmon/atlassian-qna huggingface dataset:
SourceTree Ask Login everytimes when pull, push, fetch etc...
Asked by LinYuXiang:

it's my sourcetree version 3.1.2 for window

i can't find setting how to keep my authentication.

this project is from Azure DevOps.

i try Repository -\> Repository Setting -\> Remotes \& Advanced   
but not work

i have no idea how to fix it.

![sourcetree-auth.jpg](/t5/image/serverpage/image-id/54903i6CDA9B99A893B120/image-size/large?v=v2&px=999 "sourcetree-auth.jpg")![sourcetree-auth02.jpg](/t5/image/serverpage/image-id/54904i7A6B5FD402B16027/image-size/large?v=v2&px=999 "sourcetree-auth02.jpg")


Answers:
author: Mike Corsaro
body: Hello! Could you make sure that you're using the latest version of the [git-credential-manager-for-windows](https://github.com/Microsoft/Git-Credential-Manager-for-Windows/)? Some of the older versions of the credential manager have issues storing credentials.

Could you check and see if this issue also happens if you run the commands from the Terminal?

* Click the "Terminal" button
* Run "git fetch" and see if the prompt comes up.
* Login
* Run the command again from the terminal

If the prompt comes up yet-again then you might need to file a bug on the git-credential-manager-for-windows github project.
(Sourcetree 3.1) Is it possible to re-enable the bottom tabs for File status/history/search?
Asked by Kabutak:

I recently updated to the latest version of Sourcetree on Windows (3.1.3) and noticed that the UI has changed again. Looking at the 3.1 release notes, I see:

* Replaced the File Status, Log/History and Search tabs with options under the WORKSPACE heading in the repository sidebar. This provides commonality with Souretree for Mac  

Is there any way to re-enable the previous UI? While I can adapt and get used to using the hotkeys or clicking the sidebar, this is much less efficient than the previous flow. Being able to swap panes from the same spot in the window where the relevant work is being done was much faster. It's a somewhat annoying change, especially since now the list of unstaged files in the history view appears to just drift off the bottom of the window under my taskbar.

While I'm at it, consider this a vote towards making the number of changed files badge on the commit button optional on Windows. I voted on the mac issue for it, but didn't see a windows one. Also, can we add the ability to pin the new local repositories sidebar to the left side of the screen instead of the right? Then we almost have the old sourcetree UI back.


Answers:
author: bgannin
body: HI [@Kabutak](/t5/user/viewprofilepage/user-id/63509),

Thank you for your feedback. The best way to communicate these are via votes, comments, or new tickets if necessary in our public trackers.

That said, we are intentionally streamlining the UX and unifying them across all platforms - having additional settings and maintaining a therefore [exponentially complex code base](https://inessential.com/2009/07/30/anatomy_of_a_feature) to preserve the old(est) UX isn't on the roadmap.

Brian Ganninger  
Principal Developer, Sourcetree

comments: author: Pawel Cioch
body: Another good part of the answer could be "we moved them to left panel on the top". I had a hard time to find it just after updating ST from 3.0.x to 3.3.8
Something is totally messed up with login
Asked by Michael Hylton:

Bitbucket account, logs in fine in Bitbucket, Sourcetree refuses to accept password, keeps prompting. There's some kind of big disconnect, and I cannot figure out how to fix it.

Also, I'm already logged into Bitbucket, why do I need to login again in Sourcetree at all?


Answers:
author: bgannin
body: Hi [@Michael Hylton](/t5/user/viewprofilepage/user-id/3195429),

A few questions:

- What version of Sourcetree are you using?  
- What platform are you on?  
- If you remove and re-add the account does the problem persist?

Cheers,

Brian Ganninger  
Principal Developer, Sourcetree

comments: author: Michael Hylton
body: Hi Brian,

- Version 3.1.2  
- Win 64

- Tried that and uninstalling Sourcetree and reinstalling.

The problem all started when I couldn't remember my password to Bitbucket a few weeks back, and I wound up changing it. After that, I couldn't "login" to Sourcetree.

Hope this helps,

Michael


author: bgannin
body: Uninstalling the app doesn't affect the stored settings. You'll want to remove and re-add via Options -\> Accounts and see if the problem still exists.


author: Michael Hylton
body: Thanks Brian. I've tried removing all account in SourceTree, I've tried disconnecting BitBucket from SourceTree and starting over. Nothing seems to work. I have confirmed that I can perform the git clone command using a windows command prompt. It too prompts me for the password, and it accepted it and brought down the code per the norm. I'm not sure what is going on with my account as it relates to Bitbucket and SourceTree, but something there is amiss.

Michael


Tags: bitbucket
Pull and merge changes of selected branch (Remote) only to local repository using SourceTree
Asked by knk106:

I'm new to Git and new to atlassian bitbucket as well. I'm using sourcetree. I'm working on project on which 7 other developers are working too. A new branch is created for each n every developer. I have my own branch too. After the task completed, I pushed my changes to remote default branch. They (client) found some issues in my project and did some changes in my branch only. Now I want to pull those changes and merge it to my local repository. There are also changes in other developer's branches too. But I don't want to pull/merge other developer's changes. I only want to pull/merge changes in my local project which they did in my branch only. I don't know how to do it. Can somebody please explain step by step procedure? Thanks


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

When you click "Pull" in the toolbar, the dialog that comes up includes the following:

![Screen Shot 2019-06-05 at 1.11.42 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/56772iD483D35F11B440AF/image-dimensions/326x30?v=v2 "Screen Shot 2019-06-05 at 1.11.42 PM.png")

The local branch which you are 'merging' into is whatever your current branch is, and the branch you are pulling (changes from others to your work) is what should be selected in the popup. Hopefully that helps clarify a bit.

Brian Ganninger  
Principal Developer, Sourcetree


Tags: bitbucket
Create Pull Request from clone to remote origin
Asked by Zachary Thomas:

Hello,

When I create a new repository in bitbucket with no branch permissions and then clone it to my local computer, I'm able to commit to my local and then push to the new remote that I made. If I change the branch permissions to only allow changes to be made to the remote repository via pull request, then I'm not able to create a pull request from my clone so that changes can be pushed to the remote. Instead I have to fork the remote repo and then clone the fork and commit to clone, push to fork, and then do pull request from fork to the remote.

My question is why can't I create a pull request from my clone and once approved push to the origin? Is it absolutely necessary to go through a fork if I require pull request.

I think I'm misunderstanding a basic priniciple of git.

Thanks

Zach Thomas


Answers:
author: Auwal MS
body: Hello [@Zachary Thomas](/t5/user/viewprofilepage/user-id/1012616) ,

If you own the repo and cloned it to work locally. You will need to create a branch locally and work on the feature of your choice and then when you push the branch back online, you should be able to create a pull request to merge into the master branch. Still need clarification? Check out this tutorial on branching by the Atlassian team =\><https://www.atlassian.com/git/tutorials/using-branches>
Trying to install Sourcetree, but get a buggy "Registration" screen
Asked by Dennis Field:

It looks as though it wants me to log into Bitbucket, but I just want to sign in through my Atlassian ID like I've done before. Unfortunately, can't tell what the rest of the screen is saying.

Windows 10, Sourcetree 3.1.2

![sourcetree-install.png](/t5/image/serverpage/image-id/54673i803202CCB8053A27/image-size/large?v=v2&px=999 "sourcetree-install.png")


Answers:
author: Mike Corsaro
body: Hello! We've removed Atlassian account login and you'll now need to login via Bitbucket (which I believe does support atlassian id anyways).

Not sure why no text is showing up -- [could you try disabling hardware acceleration for WPF](https://docs.microsoft.com/en-us/dotnet/framework/wpf/graphics-multimedia/graphics-rendering-registry-settings#disable-hardware-acceleration-option) and see if that helps? Thanks!

comments: author: Dennis Field
body: Oof. Not a fan of signing up for yet another thing just to use a Git client. Guess I'll have to move on. Sorry!

It did fix the text, though. Thanks anyway!
Sourcetree Mac 2.7.6 fails to update (Sierra)
Asked by edmechem:

Running Sourcetree 2.7.6 on macOS 10.12.6 Sierra.

Choosing "Check for Updates..." menu item results in "Update Error!" dialog with "An error occurred in retrieving update information. Please try again later." descriptive text:

![Screen Shot 2019-05-15 at 2.31.55 PM.png](/t5/image/serverpage/image-id/54702iDF21E0FACC4D1662/image-size/large?v=v2&px=999 "Screen Shot 2019-05-15 at 2.31.55 PM.png")

This should be fixed.

If indeed Sourcetree 2.7.6 is the latest that can run on macOS 10.12.6 Sierra, then this message should instead say "No Update Available" with "You're already running the latest version of Sourcetree for your system." or some such.

If there \*is\* a newer version of Sourcetree that runs on 10.12.6 Sierra, then this Check for Updates functionality should find it \& offer to install it.


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

I'm not sure why the update feed isn't accessible when you're checking for an update, it typically is and would show the "up to date" dialog instead. The [latest release available](https://www.sourcetreeapp.com) is 3.1.2 but it requires 10.13+.

Brian Ganninger  
Principal Developer, Sourcetree

comments: author: edmechem
body: Thanks - yeah, I saw that; the latest requires 10.13 (which I'm not running (yet)). Two related questions:

* What's the last version that runs on 10.12.x?
* Where might there be a download link for that? I looked \& couldn't find any 'older versions' section. Searching the Support section didn't reveal anything either.


author: edmechem
body: [@bgannin](/t5/user/viewprofilepage/user-id/744444)Can you reply please? thx


author: bgannin
body: <https://www.sourcetreeapp.com/download-archives>

2.7.4 is the last 10.12 compatible release available on that page; it will update to 2.7.6 and no further. I'll ping the web folks to find out why 2.7.6 isn't present in the list.


author: edmechem
body: Thanks Brian. How would I have found that link (download-archives) other than your mentioning it here? I looked and didn't see it... Perhaps more visibility to that (esp. when searching "system requirements" on Support page) would be helpful. Thx again.


author: bgannin
body: It's in the footer of every page on sourcetreeapp.com.


author: Schroef
body: [@bgannin](/t5/user/viewprofilepage/user-id/744444) why isnt there a proper requirements footnote or page?


author: bgannin
body: Not currently but I've let folks know.


author: Schroef
body: Great, will be very helpful in the future.
Sourcetree white spaces between every letter
Asked by Maayan Balasy:

in some files in my project, white spaces are added everywhere in the diff preview.

I suspect it breaks my commits.

Someone has a clue on how to fix it?

![whitespaces.png](/t5/image/serverpage/image-id/54631i0E51DE8985E2030D/image-size/large?v=v2&px=999 "whitespaces.png")


Answers:
author: Mike Corsaro
body: Hello! This is probably due to a text-encoding error (note the small 'CR' characters -- those are depreciated mac OS classic line-endings).

Could you check the file encoding and line-ending settings used for those files?

Additionally, if you run \`git diff FILE_NAME\` in the terminal does the result also look like that for the file?

comments: author: Maayan Balasy
body: The bad files encoding was UCS-2 LE BOM in contrast to all other files encoding which is UTF-8 BOM.

changing the encoding didn't help.

when I run "git diff FILE_NAME" after changing the file encoding I see a lot of gibberish letters in red (basicaly the entire file) and afterwards the entire file, now readable, in green letters.


author: Maayan Balasy
body: eventually, the solution was to change the encoding of the files to utf-8.

Thanks! :)
In Finish Feature not able to select any featurename
Asked by mahavirsinh_darbar:

Hello,

I am facing a strange issue where I couldn't able to finish a feature.

Step 1: When I click on finish feature.

![Step1.jpg](/t5/image/serverpage/image-id/54620i56B6FD44545C4995/image-size/large?v=v2&px=999 "Step1.jpg")

Step 2: I am not able to select any feature name. Try all combination regarding checkbox but none works. Also, OK button is disabled.

![step2.jpg](/t5/image/serverpage/image-id/54621iD50D605E2BE4335E/image-size/large?v=v2&px=999 "step2.jpg")

More Information :

Initially, I am not able to create the feature as well. Also, if I am on develop branch \& click on gitflow than it's directly displayed finish feature option.

![step3.jpg](/t5/image/serverpage/image-id/54622i43511EC35A8BE224/image-size/large?v=v2&px=999 "step3.jpg")

Have created a new feature using Other action.

Version: 3.1.3

Windows OS version: 10

Thank you for help in advance.


Answers:
author: dsveinot
body: I have found starting inv3.1.2 when you initialize git flow the .git/config file does not update correctly  
values for \[gitflow "prefix"\] section show as follow  
\[gitflow "prefix"\]  
feature =  
bugfix =  
release =  
hotfix =  
support =  
versiontag =  
\[gitflow "path"\]

If you correct as show below  
\[gitflow "prefix"\]  
feature =feature/  
bugfix =  
release =release/  
hotfix =hotfix/  
support =  
versiontag =  
\[gitflow "path"\]

process will function correctly

comments: author: mahavirsinh_darbar
body: Thank you for your help. It's worked.


author: Mike Corsaro
body: Hello! Could you report back with the following:

* Switch back to the feature branch
* Click the "Terminal" button
* Run the command: git flow feature list
* Reply with the resulting message

Thanks!

comments: author: mahavirsinh_darbar
body: Hello Mike Corsaro,

Thank you for your replay.

Received below message from the terminal.

![step4.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/54717i6E7F4F6BE171D92B/image-size/large?v=v2&px=999 "step4.jpg")


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

Could you please let me know the next steps to resolve the issue?


author: Mike Corsaro
body: Looks like git-flow didn't initialize correctly -- the answer below should help you out (the config file is under YourRepo/.git/config).

Find:

```
feature =
```

and make it:

```
feature = feature/
```
Cannot connect to remote repositories
Asked by Richard Heasman:

I have a user who has three remote repositories set up and working. We have recently changed her username, and since then, she cannot create any new remote repositories.

When she clicks on the new tab and selects "remote", the connection shows with a red cross and does not connect, even though when editing her "hosting account", the authentication shows as OK - green tick.

I suspect this is permissions at the remote end (bitbucket).

Please assist!


Answers:
author: Mike Corsaro
body: Hello! As a work around the user should be able to also create the repository in Bitbucket itself, and then manually clone the repository using the URL in Sourcetree.

Could you try the following?

* Have the user remove all credentials from Sourcetree (Tools \> Options \> Authentication). Make sure the entries under "Git Saved Passwords" are also removed
* Restart Sourcetree, and have the user re-add their account

Additionally, this scenario can be completely avoided in the future by using SSH keys for authentication rather than username and password. [You can find instructions for doing that here.](https://confluence.atlassian.com/sourcetreekb/generate-and-load-ssh-keys-into-sourcetree-with-putty-790629663.html)

comments: author: Richard Heasman
body: Hi Mike.

Thanks very much for your reply! I have asked the users to do this and they report that they are still having the issue.

I have uploaded a screenshot to try and explain the issue further.

Kind regards,

Richard

![error.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/54795iAA18B85F50C427B8/image-size/large?v=v2&px=999 "error.jpg")
SourceTree Half installed. Waiting for login to finish
Asked by Paul Gibson:

I had a version 2.x installation of SourceTree on Windows 10 that kept telling me I was already up to date so I decided to manually update by downloading the installer from the website.

I am struggling to get the install complete because the login won't finish and because of this I appear to be completely locked out of SourceTree until this is resolved. I wish I'd not bothered to update now. Anyway I need to get out of this vicious circle so any help will be greatly appreciated.

I've selected to Login to Bitbucket during the install process and entered my credentials which have been accepted, I am using Chrome as that's my default browser. I get to the page which says....

Confirm access to your account {#toc-hId--1437615102}
-----------------------------------------------------

**Sourcetree for Windows** is requesting access to the following:

...and when I hit the Grant Access button it just takes me to an error:

This site can't provide a secure connection {#toc-hId-1049897731}
-----------------------------------------------------------------

**localhost** sent an invalid response.

and I'm stuck. I don't appear to be able to back out of this and just launch the application, only the installer, which requires me to register, but the registration process won't complete so I'm stuck unable to use SourceTree because the login process fails and it won't let me side-step it to get back to doing some productive work.

I searched the community for other installer problems and they all appear to be IE related and latest information suggests that the latest installers no longer rely on IE and this annoying login process should work on any browser.

Help! I just want to get back to using the application and don't understand why this login nonsense has been allowed to break installations.


Answers:
author: Jo?oS
body: It worked for me:

copy url and change https to http and open in iexplorer.

comments: author: L?zaro Camacho
body: That works for me too. thanks


author: isa
body: version [3.0.17](https://product-downloads.atlassian.com/software/sourcetree/windows/ga/SourceTreeSetup-3.0.17.exe)worked 4 me


author: helsethagan
body: Chrome was forcing https. Changing to http and opening in Firefox fixed it for me.


author: Mike Corsaro
body: Hello! This is probably due to a non-default setting in Chrome, your local internet security settings, or possibly anti-virus.

Could you try the following and see if any of them work?

* In the URL, change 'https' to 'http' (something might be forcing it to use https)
* Try changing the 'localhost' part to '127.0.0.1' and try navigating again
* Try changing your default web browser to something else, or copy and paste the end result URL into another browser


Tags: install

login
What IP address and network style does Sourcetree use when installing?
Asked by Tyler Mena:

We're trying to install Sourcetree on a server, but we've been getting a network error when it asks to connect to your bitbucket account. We were wondering:

1. What IP address does Sourcetree try to connect to when performing the installation?

2. What port does Sourcetree use?

3. What network style does Sourcetree use (TCP or UDP)?

We're likely rejecting the outgoing network connection, but don't know what we should open up to allow it to go through. Thanks in advance!


Answers:
author: Mike Corsaro
body: Hello! When installing Sourcetree the Bitbucket login step requires that the webbrowser after login can ping back to:

```
http://localhost:34106
```

So as long as that port is open it should work fine. After registering **you do not need that port to be open anymore**: Sourcetree does not make any additional account check after the first registration.

As a work-around you may also copy the "C:\\Users\\USERNAME\\AppData\\Local\\Atlassian\\SourceTree" folder from another computer that has logged in to the server and start Sourcetree.

comments: author: Tyler Mena
body: Thanks so much Mike! We'll see if that works!
New Source control does not see files
Asked by Daex Kor:

Hi.

I have created a folder called PuzzleGame and inside this is Puzzle which houses my game files. I select PuzzleGame as my sourcetree directory under the new repo options, and Sourcetree creates the .git folder that I can see.

However no changes ever show up. It only ever says "Nothing To Commit".

I have tried deleting the .git and starting again, but same outcome. What am I doing wrong?


Answers:
author: Mike Corsaro
body: Hello! When creating a new repository, please make sure the folder layout looks something like this:

* My New Repository
  * .git
  * (all the new amazing files you made)

Don't put your files in the .git directory, and be sure to add the "My New Repository" folder to Sourcetree. Hit F5 to refresh the view and you should now see your files.

If the above does not work then it would help quite a bit to see the folder structure and screenshots from Sourcetree of the steps you performed. Thanks!

comments: author: Daex Kor
body: Thanks for the assist but this is how I've set it up and it is still not showing anything. Puzzle is the repo folder. PuzzleProject holders all the Unreal project files.

![folderstructure.png](https://community.atlassian.com/t5/image/serverpage/image-id/54905i86549B27C89997E1/image-size/large?v=v2&px=999 "folderstructure.png")


author: Daex Kor
body: Also the steps I did:

1. File -\> New Repo
2. Click create
3. Select Puzzle as destination path
4. Name was Puzzle
5. Click create.

Tried this several times and no success at seeing any changes in any files or subfolders.


author: Daex Kor
body: Bump.


author: Mike Corsaro
body: Sorry about that! Could you verify the current file filter is set to the correct value?

Try changing it to "All" and then change it back to "Pending":

![Capture.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/55580i554A953F3FE6C58E/image-dimensions/404x95?v=v2 "Capture.PNG")

If files still do not show up, do the following:

* Click the "Terminal" button in the repo
* Run 'git status'
* Reply back with the result of the command. If there's a ton of files listed don't worry about listing them


author: Daex Kor
body: Aha! It was set to modified. Setting it back to Pending fixed it so I could make an initial commit. Thank you for your assistance.