youngmon/atlassian-qna huggingface dataset:
Can't use my password on git fetch, error 403
Asked by Shir:

Hi,

I'm trying to use "git fetch" for a repository I have access to (write access).

I get this login window-

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

I use my password (that I even changed after this happened for the first time, to make sure I use the right one), but it won't accept it. I also tried to use the password from the Authy app, but it doesn't work too.

After the login fails once, the same windows is shown once more, and after it is fails again, this window is shown-

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

The login is failed here too, and this output is shown-

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

When I use the app password as it says, I get-

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

Any idea what can I do?...

Thanks!


Answers:
author: Shir
body: UPDATE-

I created a new ssh key, then deleted all my git repositories and re-cloned them using ssh instead of https, and it worked.


author: minnsey
body: Hi You need to upgrade you Git install, either by upgrading the bundled Git version in Sourcetree in the tools/options/git tab.  

Or by installing git independently and configuring Sourcetree to use it in the tools/options/git tab as a System Git install.  

We'd recommend using Sourcetree 3.0.12 and/or Git 2.19.2
Can't login to GitHub with Source tree
Asked by Nenad Bulatovic:

Since two months or so everything worked OK.

Today I tried to push some code and I can't do it. SourceTree keeps rejecting my login. I have Bitbucket account, and when I try to login with Web Browser I am redirected to Atlassian login and it went fine, but with source tree I can't login. If I do refresh token I receive 'OK' but still can't fetch code. If I switch to basic with username / password, rejected again. Now I am not even sure if I should use Atlassian login credentials or old Bitbucket or what? SourceTree works ok with GitHub. This problem is related only to Bitbucket.  
Please help.


Answers:
author: Nenad Bulatovic
body: I resolved this by completely uninstalling SourceTree and deleting evrerything in:
>
> C:\\Users\\\<username\>\\AppData\\Local\\Atlassian

**I also installed latest version of Git Credential Manager for Windows**

<https://github.com/Microsoft/Git-Credential-Manager-for-Windows>

I think that was the crucial part.

Now it works for https but not for ssh, I guess I have to create new keys.


author: Gonchik Tsymzhitov
body: Hi!

Have you found any error messages in the logs?

Cheers,

Gonchik Tsymzhitov

comments: author: Nenad Bulatovic
body: I resolved this by completely uninstalling SourceTree and deleting evrerything in:  
C:\\Users\\\<username\>\\AppData\\Local\\Atlassian

Now it works for https but not for ssh, I guess I have to create new keys.


Tags: bitbucket
Changing password and login
Asked by xlapteva:

Hi!

I'm new to sourcetree and programming as a whole. I was trying to push to a branch on my github via sourcetree and I entered wrong password or login.

*Pushing to <https://github.com/Xlapteva/Ksu_python_hw.git>*

*remote: Invalid username or password.*

*fatal: Authentication failed for '<https://github.com/Xlapteva/Ksu_python_hw.git/>'*

*Completed with errors, see above*

I tried to push again but it doesn't ask for password anymore, just gives me this completed with errors report...

Now I can't find where to change the password....

Please help. I'm on Mac


Answers:
author: bgannin
body: Hi Xenia,

The easiest way to resolve this would be to delete the account (Preferences -\> Accounts) and re-add it. That should store the appropriate password and prompt you if necessary.

Brian Ganninger  
Senior Mac Developer, Sourcetree


Tags: mac
Viewing a remote repository via SSH
Asked by Carl Barker:

Hello.

I am new to SourceTree and Mercurial, so forgive me if this is a stupid question, but I was wondering if it is possible to view a remote Mercurial repository via SSH. I know it is possible to clone via SSH and view the local clone, but I can't see any way to via the remote repository directly.

Thanks,

Carl


Answers:
author: Ana Retamal
body: Hi Carl, welcome to the Community!

What do you mean by "view a remote repository"? Can you elaborate a bit more on what you're trying to achieve, so we can see if there's a solution for that?

Cheers :)

Ana

comments: author: Carl Barker
body: Hello.

I have a repository on host A (which is a unix box), which I have cloned to my local machine (which is a Windows box) using SSH. I know I can use SourceTree to view my local repository (the one on my Windows box), but can I use SourceTree to view the repository on host A?

Thanks,

Carl


Tags: ssh
Source Tree removed my files after keep on asking my username and password
Asked by Naveed hanif:

Hi,

I have ran into a problem. Source Tree has removed my many files. here's what was happening.

* I tried to commit my code (successful)
* I tried to push my code to origin (unsuccessful)
* Then Source Tree started asking me username password in popups for multiple times (although the username and password was correct and i had active internet connection)
* Then I tried to resume my work where my development tool asked me to reload the project. (It is usual in case of Android Studio (the development tool I use))
* After this my many files were lost.
* When I tried to reset to my commit I found out that commit also had lost all those files.

Please guide me what I can do to get my lost files back.


Answers:
author: minnsey
body: If the files were committed, then they should be visible via the log view, under one of the last commits.
can't install Sourcetree on Windows 10
Asked by privatehosting:

Hello,

cannot install SourceTree on Windows 10 because of this Error Message

![](https://i.imgur.com/ZpXnaoJ.png)

.NET Framework 4.7.2 and 4.7.1 are already installed. but installer cant recognize them,

can someone tell me how to fix this?

Thank you,

Best Regards,

Dominik Pilichiewicz


Answers:
author: minnsey
body: Hi  

Depending on which version of Windows you are running there we have had reports of it not correctly reporting that 4.7.x is installed. I certainly had to reboot a few times.  

How are you confirming 4.7.x is installed? <https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/how-to-determine-which-versions-are-installed>


Tags: windows
Sourcetree : Loosing SSH key on MAC
Asked by Antony GUEDJ:

Hello,

When I restart my computer (Mac Mojave), I loose the connection to GitHub via SSH from SourceTree. I have to reset my SSH key each time.

Does anybody has already fixed this issue?

Thanks for your answers,

Bests regards.

Tony, CTO Leisly


Answers:
author: Johan Soetens _Dumblefy_
body: Hi Antony,

please look into *UseKeychain* in your SSH configuration.

[OpenSSH updates in macOS 10.12.2](https://developer.apple.com/library/archive/technotes/tn2449/_index.html)

[macOS: autoload ssh keys from Keychain](https://medium.com/@michaelchampanis/macos-autoload-ssh-keys-from-keychain-ad72a82b4f57)

comments: author: Antony GUEDJ
body: Hi Johan,

I will. Thanks a lot for your answer!


Tags: github

mac

ssh
The release notes link for windows link to the sourcetree homepage
Asked by ChananB:

The link for release notes on the Upgrade popup on the windows version doesnt link to release notes, instead it opens up the sourcetree homepage.


Answers:
author: minnsey
body: Hi  

Thanks for reporting this, it appears to be an intermittent issue as we can't reproduce it at the moment, but we will investigate further.


Tags: windows
Feature Suggestions for streamlining the pulling process!
Asked by wesley torres:

I think SourceTree is a pretty great tool because it allows me to keep tabs on the HUNDREDS of repositories my team manages. It's great to get notifications that there are new changes ... but then it gets ugly. I've got to click the notification (or browse for the repo if I miss it) and click Pull, then I get a modal dialog that I later need to Close. Then I've got the repo window which I also want to close.   

that's a lot of clicking for a simple operation. I have some suggestions...  

1. what about a setting that would tell the app to **pull automatically** if there are new changes. Options could exist to handle situations where uncommitted changes exist locally (automatically shelve the changes, etc.)  
2. What about better **sorting** options for the list of repositories so repos with changes I want could be grouped together? Perhaps offer sorting by # of changes, or date of most recent change ...  
3. How about an option to **pull** from a context-menu in the repository list? A modal-dialog-less way to pull would be great. If you don't have #1, I could couple this with #2 to at least *easily* pull changes for a bunch of repos without dealing with multiple modal dialogs.  
4. The GUI should do a better job of differentiating between incoming and outgoing changes in the repository list. Uncommited changes are **dark numbers** and changes ready for push *or* pull are light numbers. Why not differentiate between changes ready for pull and those ready for push? 3 columns in this display would be simple...  

Thanks for reading. These are all suggestions that I think individually or collectively could great improve the usefulness of this tool for teams with many repositories.


Answers:
author: bgannin
body: Hi Wesley,

Please file individual tickets for each of your suggestions (if they aren't there already, please search) so other users can vote on them and we can weigh their priority accordingly when planning future releases.

For Mac: [public tracker](http://jira.atlassian.com/browse/SRCTREE/)  
For Windows: [public tracker](https://jira.atlassian.com/browse/SRCTREEWIN)

Thanks,

Brian Ganninger  
Senior Mac Developer, Sourcetree
How do I fix the error:
Asked by dhakken:

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

I can sign into my Bitbucket account I can see the remote repositories through Sourcetree but I receive this error both when trying to push or pull a repository. One of my coworkers is having no problem with either.


Answers:
author: minnsey
body: Hi  

Is it possible you are behind a proxy which is allowing web requests through, e.g. REST calls to list remote repositories, but not the git push/pull requests?  

Do the git commands work from the command line?

comments: author: dhakken
body: No we do not use a proxy here. When I try to clone a repository I receive the following error:

Command: perl.exe C:\\Users\\dhakken\\AppData\\Local\\SourceTree\\app-3.0.8\\tools\\svn.pl info https://dhakken@bitbucket.org/cornellcollege/students_seniors_seniors-checklist  
Output:  
Error: System.ComponentModel.Win32Exception: The system cannot find the file specified

Command: git -c diff.mnemonicprefix=false -c core.quotepath=false ls-remote https://dhakken@bitbucket.org/cornellcollege/students_seniors_seniors-checklist  
Output:  
Error: remote: Invalid username or password  
fatal: Authentication failed for 'https://dhakken@bitbucket.org/cornellcollege/students_seniors_seniors-checklist/'

Command: hg identify extensions.hgext.hgsubversion=! https://dhakken@bitbucket.org/cornellcollege/students_seniors_seniors-checklist  
Output:  
Error: abort: http error, possibly caused by proxy setting

Now this error indicates that the username or password is invalid but it is the correct user name and password, again I'm still hopeful but perplexed.


author: minnsey
body: Do you get prompted for any credentials? Also is it a Mercurial or Git repository?


author: dhakken
body: Unfortunately no. just error messages.


author: dhakken
body: Hey Micheal any new suggestions or tings I can try?


author: minnsey
body: Try from the command line/console
SourceTree??????????
Asked by ????:

??????????????????????????/???URL?????????????????????

SourceTree??????????clone??????????BitBucket????????????????????????????????????????????????

????????????
> ????: git -c diff.mnemonicprefix=false -c core.quotepath=false ls-remote https://????@bitbucket.org/????/website.git  
> ??:  
> ???: fatal: HttpRequestException encountered.  
> ????v??????M????G???\[??????????????B  
> remote: To make a call, you need to use an app password.  
> fatal: unable to access 'https://????@bitbucket.org/????/website.git/': The requested URL returned error: 403

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

* SourceTree???????????
* SourceTree??????????????????
* ??Git????????????? 2.18.0/LibGit2Sharp 0.24.0+ git - lfs v2.4.2?

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


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

?????????????????????????2????????????????????????

????????????????SSH??HTTPS??????? ???????????????????????

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

* [??? ?????](https://ja.confluence.atlassian.com/bitbucket/app-passwords-828781300.html)

2???????????????????????????????????

* [2 ????](https://ja.confluence.atlassian.com/bitbucket/two-step-verification-777023203.html)

comments: author: ????
body: ????????????????????????????????????????????????????????


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

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


author: ????
body: ????????????????

?????????????2??????????????????????

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


Tags: clone

language-ja
Sourcetree can't pull/push login problems
Asked by Sander:

Even though I am logged in, have acces to all my repositories, Sourcetree does not let me push. It prompts me to log in (even though I already am). I already tried resetting my password but this did not work. How can I fix this?


Answers:
author: Mike Corsaro
body: Hello! This is a long-running problem with the git-credential-manager. To solve it:

1. Download the git-credential-manager 1.18.3:
   1. <https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases/tag/1.18.3>
2. Try installing Sourcetree 3.0.12
   1. <https://downloads.atlassian.com/software/sourcetree/windows/ga/SourceTreeSetup-3.0.12.exe>
3. When prompted again enter your credentials OR add your account via OAuth in the Accounts tab in Options
Keep asking credentials while pull in SourceTree
Asked by gopalvaghasiya:

when I am doing pull in SourceTree at that time Atlassian asks me for credentials in windows,

keep asking the same thing and after that failed login error occurs,

I was tried to reset my password, remove my account and then again add an account in SourceTree, update a git from SourceTree and uninstall SourceTree and again install and setup it,

But again the same problem occurs

please help me out!

**please refer below screenshot for more**

**![Screenshot 2018-12-05 17.05.07.png](https://community.atlassian.com/t5/image/serverpage/image-id/39491i9C0E3390A9601F99/image-size/large?v=v2&px=999 "Screenshot 2018-12-05 17.05.07.png")**

**Thanks**


Answers:
author: Boyce Developer
body: I tried fixes mentioned by [@Mike Corsaro](/t5/user/viewprofilepage/user-id/842547) and [@fairful](/t5/user/viewprofilepage/user-id/2398152). Doesn't seem to work for me. I tried updating the embedded Git and also install the versions mentioned. It doesn't seem to fix the issue. I have attached the details of my embedded Git version.![Embedded.png](https://community.atlassian.com/t5/image/serverpage/image-id/39821i2743085069ADBA0A/image-size/large?v=v2&px=999 "Embedded.png")


author: Mike Corsaro
body: Hello! This is a long-running problem with the git-credential-manager. To solve it:

1. [Download git-credential-manager 1.18.3](https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases/tag/1.18.3)
2. [Install Sourcetree 3.0.12](https://downloads.atlassian.com/software/sourcetree/windows/ga/SourceTreeSetup-3.0.12.exe)
3. When prompted again enter your credentials OR add your account via OAuth in the Accounts tab in Options

comments: author: fairful
body: The suggested solution is not working for me. Oddly, in Sourcetree, if I go to Tools/Options/Authentication, then click Edit on the account and then Refresh Password, I can enter the same credentials I do in the above dialog and this succeeds. BUt entering them into the dialog fails. THis is with the two items listed above installed, and a reboot, just for luck!


author: fairful
body: Update: I managed to sort this by updating the embedded Git version in Tools/Options/Git


author: John Fricker
body: I wish I'd managed to update the embedded Git. Instead it gets to the "extracting" phase and then states that the download failed.


Tags: bitbucket

windows
Issue with Atlassian Sourcetree login
Asked by CRMADMIN:

We are facing login issue while logging in to atlassian account from Sourcetree GUI. Password works in cloud but doesn't in local windows. We have tried resetting password and that also doesn't fix the issue. Updating to version 3.0.8 also doesn't help. Can anyone help.


Answers:
author: Mike Corsaro
body: Hello! This is a long-running problem with the git-credential-manager. To solve it:

1. Download the git-credential-manager 1.18.3:
   1. <https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases/tag/1.18.3>
2. Try installing Sourcetree 3.0.12
   1. <https://downloads.atlassian.com/software/sourcetree/windows/ga/SourceTreeSetup-3.0.12.exe>
3. When prompted again enter your credentials OR add your account via OAuth in the Accounts tab in Options
How do I view the stored complete code
Asked by shuinanxun:

Some of my code is stored, but I can't apply this method to code stored.There is a full file with more than 100 lines of stored code. In sourcetree's source code area, the full code for this file cannot be displayed. Only the first 100 lines can be displayed.Is the stored code stored in a file on my computer?

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


Answers:
author: Mike Corsaro
body: Hello! You should be able to change this via Tools \> Options \> Diff \> Max Diff Line Count

comments: author: shuinanxun
body: hi,I did what you gave me, but sourcetree still only shows 100 lines

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

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


author: shuinanxun
body: Restarting sourcetree won't do either
Unable to use Sourcetree after installation
Asked by Amrita Kanungo:

After installing Sourcetree getting the attached error. Could you please check and suggest what needs to be done for proper installation?

PFA screenshot of the error.![Screen Shot 2018-12-05 at 12.45.44 PM.png](/t5/image/serverpage/image-id/39461iA428F50B6FCEC853/image-size/large?v=v2&px=999 "Screen Shot 2018-12-05 at 12.45.44 PM.png")


Answers:
author: Ana Retamal
body: Hi Amrita, welcome to the Community!

Based on previous experiences, this error might be caused by Git. Can you go to **Tools \> Options \> Git**, and check whether you are using system or embedded Git, and whether you have an option to install an embedded Git.

While doing some research on this, I found [a workaround](https://github.com/lukesampson/scoop/issues/2167#issuecomment-399556334) that consists of creating a directory junction (hard link) for the embedded git Sourcetree tries to use.  
In `%userprofile%\AppData\Local\Atlassian\SourceTree` create a directory junction using elevated command prompt named `git_local` to point to scoop's git location `*path*\Scoop\apps\git\current`

    mklink /J %userprofile%\AppData\Local\Atlassian\SourceTree\git_local *path*\Scoop\apps\git\current

Then in source tree options, specify it to use embedded git.

Lastly, this problem was already reported in our issue tracker and you can follow it [here](https://jira.atlassian.com/browse/SRCTREEWIN-7964).

Hope that helps!

Ana

comments: author: Amrita Kanungo
body: Hey the command doesnt work even in an elevated cmd. It doesnt recognize /J .

Could you please suggest?

Also in the first part before userprofile should I give the full path like C:\\Users\\userprofile?


Tags: windows
How to export local project to bitbucket?
Asked by Manasa:

Hi,

I have a .net project in my local system, I would like to export that into bit bucket. can someone please assist with the steps.Thank you in advance.


Answers:
author: Prakhar Srivastav {Appfire}
body: [@Manasa](/t5/user/viewprofilepage/user-id/2384532)

You can create a repository on bitbucket first. On your repository landing page it will show you the instructions to push an existing repo to bitbucket.

Basically you want to do these actions :

1. Install and Set up Git if not already on your local system

2. Move to your repo folder and initialize git repository (git init) command

3. Add the files and commit in local (git add and git commit commands)

4. Set up your local to bitbucket remote (

```
git remote add origin)
```

5. Push to bitbucket (git push)

Regards

Prakhar


Tags: bitbucket

export

github
Show link to jira ticket and send out mail after creating ticket with confiform
Asked by Can Kilic:

I created a confiform which creates a jira ticket. Now I want to show the jira number (with a link in it to the ticket). How can I do that? I also want to send out a mail to the reporter and assignee that a ticket has been created also with the link in it.


Answers:
author: Humashankar VJ
body: Hi,

Referred from a post:

Just take the below suggestion for Email-Setup:

Just add another IFTTT that sends an email

Full tutorial on sending emails from ConfiForms is here <https://wiki.vertuna.com/display/FORMS/How+to+create+a+form+to+send+emails>

You need just to add an IFTTT that sends the actual email.

Place it after the other IFTTTs you already have (which create Jira ticket for you, etc)


author: Alex Medved _ConfiForms_
body: Hi [@Can Kilic](/t5/user/viewprofilepage/user-id/5434893)

You can [save back the issue key to some field in ConfiForms](https://wiki.vertuna.com/display/TEST/Create+Jira+issue%2C+save+the+created+Jira+key+back+to+ConfiForms+and+create+a+page+with+Jira+macro) and then use it in the "Message to show after the submit" parameter

As for the email notifications, good starting pointers are given by [@Humashankar VJ](/t5/user/viewprofilepage/user-id/5409474)

Alex


Tags: cloud

confiforms

confluence-cloud