youngmon/atlassian-qna huggingface dataset:
Heroku error after update
Asked by gbidev:

I updated SourceTree and now the Terminal can not see Heroku.

I can see that Heroku works with cmd.exe but does not work with GitBash/MINGW32.

![cmd vs terminal.png](/t5/image/serverpage/image-id/29787i7FBEF4BE2EB25E5C/image-size/large?v=v2&px=999 "cmd vs terminal.png")


Answers:
author: minnsey
body: Hi  

I don't use Heroku so apologies if this is stupid question.  

You are trying to run a windows .cmd file in Git Bash. I wouldn't expect this to work, but I could be wrong. Has it ever worked? Did you previously use cmd rather than Git Bash as the terminal?

comments: author: gbidev
body: SourceTree opens GitBash and would run heroku cli commands until the most recent update. The cmd version fires the heroku file used by Git Bash, I presume.

It seems like the update has changed either a path or environment variable.


author: minnsey
body: Can you give me an example of the Heroku commands that would be run and what would trigger them?  

Sourcetree doesn't know anything about Heroku so are these commands configured against Git?


author: gbidev
body: Hi Michael,

I have opened an issue ticket with Heroku to assist as well.

The first basic test is to check the version of the installed heroku cli toolbelt, which fails.

```
heroku --version
```

This has always worked, but after I upgraded from Source Tree 1.9 to the new version, it failed. I rolled back to 1.9 but the damage seems to have been done already and I have done multiple re-installs of Heroku CLI and still no luck, thus me raising the issue here to see if anyone has faced a similar issue.


author: minnsey
body: Thanks for the additional information.  

Sourcetree does make changes to the PATH when running Git/Hg commands but these are temporary and do not persist, certainly not between restarts or updates.  

Is there any chance its due to a Git change?


author: gbidev
body: From the Heroku logs, it looks like it tried to auto-updated the Heroku CLI and failed.

Not sure if that would make any path change. No Git Change seems to have occurred.

Not sure what to do next as I have been locked out from accessing Heroku at the moment. As mentioned earlier, I have been explaining the same issue to the Heroku support to see if they can assist, but no luck as of yet.

If anything comes to mind, let me know and will give it a try.


Tags: heroku

windows
Can't push commit to Github
Asked by Anarki2D2:

When I try push 1st commit in my life into my test project in the GitHub, I got error:

git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags --set-upstream origin master:master  
fatal: HttpRequestException encountered.  
????? ???? ?? ????? ?????. //same symbols in the SourceTree

remote: Invalid username or password.  
fatal: Authentication failed for '<https://github.com/RestoreAvailable/test.git/>'

Pushing to <https://github.com/RestoreAvailable/test.git>

<br />

I write correct name and password, when i did push.   
In the settings i choose UTF-8.   

What can I do? Can someone help, please?


Answers:
author: Anarki2D2
body: Reinstall not helped me.   
The solution for this problem that helped me: [https://codeshare.co.uk/blog/how-to-solve-the-github-error-fatal-httprequestexception-encountered/](https://codeshare.co.uk/blog/how-to-solve-the-github-error-fatal-httprequestexception-encountered/?)


author: Anarki2D2
body: I reinstall app, and i think i solve it. I successfully commited another changes


author: Anarki2D2
body: -

comments: author: Anarki2D2
body: -
Unable to install and Configure Sourcetree in my desktop
Asked by Sudharsan_Narshimha:

After downloading sourcetree, we are not able to setup account and perform required configurations. Please help


Answers:
author: Ana Retamal
body: Hi Sudharsan, can you elaborate a bit more on what is the problem exactly?:

1. In which step are you stuck?
2. Do you already have an Atlassian account?
3. Do you use Bitbucket Server or Cloud?
4. Can you send a screenshot of the error message you get, if any?

Kind regards,

Ana

comments: author: Sudharsan_Narshimha
body: Hi,  

In which step are you stuck?  
Answer : I am stuck while configuring Atlassian account in Sourcetree setup. It shows unauthorized error  

Do you already have an Atlassian account?  
Answer : Yes i do have an Atlassian account  

Do you use Bitbucket Server or Cloud?   
Answer : I use Bitbucket server   

Can you send a screenshot of the error message you get, if any?  
Answer : Attached error message screenshot  
In register account page when i click on Atlassian account -\> I enter my Atlassian mail id and click on continue -\> then it takes me to microsoft sign in page -\> then i get below error  
![](https://mail.google.com/mail/u/0/?ui=2&ik=963ce595e3&view=fimg&th=165477133ba8e511&attid=0.1&disp=emb&realattid=ii_jkxutcb30_1654770f67c3c642&attbid=ANGjdJ-wV7XqahwUC7kkPVwDwjvIMq0Lzn5k7sc_4szRLlwvu_jH9b458dz-q0gozFOFrrmhP23a4yhGqb5-GrDM8aDenw6ZAuX_y-zFW36CI1ampSvSYbkgT4A3ftw&sz=w840-h606&ats=1534746574062&rm=165477133ba8e511&zw&atsh=1)


author: Ana Retamal
body: Hi Sudharsan, thanks for your reply.

I'm afraid the screenshot didn't get attached properly, so I'll have to do without that.

If you're using Windows, please make sure Internet Explorer is updated to the latest version as Sourcetree relies on it for authentication.

If you're still having issues, please try to log in to <https://my.atlassian.com/product> directly from Internet Explorer and let us know how it goes.

If all the above fails, we'll need you to resend the screenshot again.

Best regards,

Ana


author: Sudharsan_Narshimha
body: Hi Ana,

Could you please see <https://jira.atlassian.com/browse/SRCTREEWIN-9052> . This has screenshot attached.. Can we have quick call so that i can show the issue to you in better way
Turn off notifications not about SourceTree
Asked by Clayton Neff:

I am using version 2.6.10.0 and every time I start SourceTree there are notifications about Git-LFS and Git-flow. I click the close X and they go away, until the next time I start SourceTree. How do I turn those off so when I get a notification I care about (like a new version of SourceTree being available) it will be obvious? My whole team is ignoring the notifications altogether.

Thanks.

-- Clayton --


Answers:
author: minnsey
body: Hi

We are in the process of reviewing these notifications.   

Are you dismissing the notifications under the yellow flag or pop ups?

comments: author: Clayton Neff
body: I click on the yellow flag to see them. The only option there is to click on the X to close each one individually. But they reappear the next time I start SourceTree.


author: minnsey
body: OK, thanks for the extra detail.
How to stop refresh/loading delay when switching between local repos? And pull without confirming?
Asked by JaredHonda:

I'm trying out Sourcetree to see if it's a possible replacement for TortoiseHg, and I've got a few questions:

1. Every time I switch tabs between repos, it takes a few seconds to refresh the history even though all my repos are local and I manually pull down updates whenever I want them.

TortoiseHg has no such delay, so this repeated waiting is very annoying.

How can I stop this behavior? I've turned off every "refresh in background"/"check remote repos" setting I can find with no effect.

2. On a related note, TortoiseHg has a "check for incoming changes" (which is what the Pull function in ST is doing), but what I really want is just a straight pull without confirmation first, which ST does not seem to have.

Is this a setting I'm missing somewhere? Or is it just not available?


Answers:
author: minnsey
body: Hi  

Sourcetree carries out a series of Hg commands when a repository tab is activated, e,g, when switching tabs or the app comes into focus. This is to ensure the onscreen information is up to date. Sourcetree shows much more information by default than TortoiseHg but requires the extra calls.  

No, Sourcetree does not have a *simple* pull as you describe.


author: minnsey
body: Hi  

Sourcetree will always run a series of commands when it comes back into focus or swaps the active repository tab. This is to ensure all the data visible on screen is up to date. This will include more calls than TortoiseHg because it includes more visible data such as the log view etc.  

Currently we do not include a slimmed down *pull* command as you describe.
UE4 & Source tree not displaying checked out file
Asked by Koaku:

So i recently moved over from Perforce to source tree, and i have a file checked out but on my other team mates work station it doesn't say that the file is checked out.

Its causing issues when we are not communicating (due to time zones) but both editing the same file inside UE4.

Thanks,


Answers:
author: minnsey
body: Hi  

Assuming you are using Git then Git does not include the concept of locks or exclusive checkouts. Usual working practice is for each person to be walking on their own branch which is then merged in to master, or similar *main* branch, after pull request/review.

comments: author: Koaku
body: Okay so with perforce two people couldn't be working on the same script so my issue is if we have both done work on it and then committed it what would happen to say my changes?

Would they be overwritten on can sourceTree merge the Binaries so both our work is kept?


author: minnsey
body: If it was a text based file, Git would manage merging the two sets of modifications. That process doesn't work with binary files so the last commit/merge wins.


Tags: check-out

commit
How do I commit to a remote repo
Asked by Themba Nzimande:

I think my commit have been going to a local repo instead of a remote repo on bitbucket. Is there a way for me to commit my most recent commit to the remote repo?


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

Is your Bitbucket account connected to Sourcetree? If it's not, you'll need to connect them before you can push your changes to the remote, you can do so by following the instructions at [Connect your Bitbucket account](https://confluence.atlassian.com/get-started-with-sourcetree/connect-your-bitbucket-or-github-account-847359096.html). If they are already connected, then you can send your changes by clicking on 'Push' at the top of the screen:

![Screen Shot 2018-08-17 at 15.56.05.png](https://community.atlassian.com/t5/image/serverpage/image-id/29861i215E82BFECD26C6C/image-size/large?v=v2&px=999 "Screen Shot 2018-08-17 at 15.56.05.png")

Is this working for you? Let us know if you need any help!

Best regards,

Ana

comments: author: Themba Nzimande
body: Hi Ana thanks for the help. I'm a newbie at this and forgot to push.


author: Ana Retamal
body: Hi Themba, it happens to the best of us :)

Have a nice day!

Ana


Tags: git
Git Submodule not visible in sourcetree UI
Asked by MikeGatland:

I have added a git submodule to my project, but the "Submodules" does not appear in the menu bar on the left, which means there is no way to track changes. Is this something to needs to be manually enabled?


Answers:
author: MikeGatland
body: The issue was because I hadn't commited the change with the .gitmodules file


Tags: git

submodule

windows
Where is the tutorial to use SourceTree 2.6.10?
Asked by F0uda:

I am new to SourceTree. Every tutorial I can find is related to the older version of the software. Any tutorials for the latest version out there? (youtube/videos links will be highly appreciated). Thanks


Answers:
author: minnsey
body: I'm afraid <https://confluence.atlassian.com/get-started-with-sourcetree/get-started-with-sourcetree-847359026.html> is the latest documentation and yes you are correct that it is currently more focused on the macOS version. There are differences between the macOS and Windows versions but the overall principles are the same.
Changed the git config file from with source tree, and now sourcetree wont open
Asked by Gerald O'Connor:

Please help, I changed the git config file from with source tree, and now sourcetree wont open. I restored my version of windows and that didnt help. I look for versions of gitconfig on my OS and couldnt find one similar to the one I changed. I assume there is a built in version of GIT for source tree. Please help as I depend on sourcetree to work.

Thanks in advance, Gerald


Answers:
author: Mike Corsaro
body: Hello! Could you post a redacted version of your log file? You can find it under:

```
C:\Users\YOUR_USERNAME\Atlassian\SourceTree\sourcetree.log
```

If needed, you can always uninstall and reinstall Sourcetree -- all of your code and repositories won't be modified at all.
Cannot connect Sourcetree to bitbucket
Asked by phril:

When I try to add a bitbucket account in Sourcetree:

![Screen Shot 2018-08-14 at 16.17.31.png](/t5/image/serverpage/image-id/29420i3A5D9B84E53CD538/image-size/large?v=v2&px=999 "Screen Shot 2018-08-14 at 16.17.31.png")

I click "Connect Account", which opens a dialog for entering my credentials. I enter the correct credentials and Bitbucket opens successfully inside the dialog. However I cannot continue from here and the only thing I can do is to cancel the dialog which prevents me from adding the account.

I am on MacOS 10.13.5 and using v2.7.6. I have tried deleting the preferences and have also tried rolling back to previous version, i.e., v2.6.3 but no luck. :-(

Does anyone have any idea of how to fix this?


Answers:
author: Manju
body: We have a fix for this coming in our next release soon. In the meanwhile, feel free to use App Passwords to connect to Bitbucket. You can use the basic auth password field to enter your app password generated on Bitbucket. You can read about app passwords here - <https://confluence.atlassian.com/bitbucket/app-passwords-828781300.html>
Add a new account fail on Source tree
Asked by JERRY_CHEN7:

I need 2 accounts . One already add on Hosting Service: Bitbucket (ok)

The other try to add on Hosting Service: Bitbucket server (fail)

Accounts use the same user name (one is all upper case , the other is all lower case) Password are the same.

Source tree always reply: An account already exists for "xxx@git.ooo.com"

How to make it work?


Answers:
author: Manju
body: Are you selecting the right account type while adding the account? If your accounts are with Bitbucket and Bitbucket server they cannot have the same host name to complain that the account already exists.
When clone in SourceTree, warning: templates not found is shown
Asked by maxicho:

First of all, I am on macOS.

This warning is encountered by many users:  
<https://community.atlassian.com/t5/Git-questions/About-git-path-for-Sourcetree/qaq-p/186483><https://community.atlassian.com/t5/Sourcetree-questions/Sourcetree-git-cloning-warning-templates-not-found/qaq-p/253348>

In conclusion, the solutions are to use system git or change the git template directory to

```
/Applications/SourceTree.app/Contents/Resources/git_local/share/git-core/templates
```

I have no problem in cloning my source code (it is just warning and do not block me from cloning). In many times, I just ignored it and finally this warning bites me hard.

I notice that my pre-commit hooks (setup by [husky](https://github.com/typicode/husky)) are not running in my js project. After long time debugging, I find that .git/hooks is missing. And after several trial-and-errors, I find that when cloning via SourceTree, .git/hooks is not being created and it is due to the missing template warning!

By default, the template directory contains hooks, description and info directories. These will be copied to project directory during \`git init\` or \`git clone\`. But as template is not found by SourceTree, they are not copied!

It looks like SourceTree assumes template directory is /usr/local/git/share/git-core/templates which is not the case as documented in <https://git-scm.com/docs/git-init#_template_directory>

Can anyone take a look on this aged problem? It is affecting my team's workflow and obviously asking every team members to set SourceTree config is not one of the best solution.


Answers:
author: Edward Keenan
body: I found that the issues was that the .gitconfig file in my home directory wasn't pointing to the location of the templates directory. If you open the .gigconfig file there will be a templatedir property in the intit section

\[init\]  
templatedir = *some_wrong_path*/share/git-core/templates

If you can figure out where the templates actually, probably under one of the sourcetree or git folders, you can change the path. One thing I noticed is that the git version I was using wanted to add its git bath so I just needed.

\[init\]  
templatedir = /share/git-core/templates


author: Manju
body: Have you tried switching to System Git in Sourcetree? If your setup works on terminal and everything is setup with the system git path, you should switch to using System Git. Navigate to Preference window's Git tab and click on Use System Git button to switch.

comments: author: maxicho
body: Yes I tried, and it worked (i.e. my hooks directory got created).

What I don't understand is why the embedded git is looking for git template at /usr/local/git/share/git-core/templates (I got this from the warning message in SourceTree) rather than the one documented at <https://git-scm.com/docs/git-init#_template_directory>

The default template dir is /usr/share/git-core/templates. If git is installed locally, I guess it should be /usr/local/share/git-core/templates.


Tags: git
Getting fatal error message when closing a branch or closing a feature
Asked by Mohan:

I keep getting a fatal error message whenever I try to clone my bitbucket project.

<https://postimg.cc/image/j8tkw5i3r/>

I am on the latest version of Source tree 2.6.10

Whats up with that?


Answers:
author: Mohan
body: Thanks. Seems to be working now after updating the GCM.


author: Mike Corsaro
body: Hello! Could you try and update the Git Credential Manager to 1.17.1? Thanks!

<https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases>
local log history is gone and all files say they are modified
Asked by wildfish:

I'm using Sourcetree to track text files in a large project. There are a significant number of non-text files in the project that are not being tracked which we backup regularly. I am generally confused by the git terminology and am hoping I'm missing something.  

I was pushing a change to the repository when my computer crashed. Coming back to sourcetree found no Log/History and all files were listed as changed. What I'd really like to do is to restore the log history to source tree. Looking at the various files in the .git folder nothing looks particularly amiss and I'm wondering whether I'm somehow just located on the wrong commit or otherwise disoriented. Alternatively I'd like to be able to reclone or restore the master from bit bucket but I keep getting messages along the lines of "the large number of untracked files will be deleted". Is there a way to get a refreshed repository without disrupting untracked files


Answers:
author: minnsey
body: Hi  

I wouldn't have expected a git push to have corrupted your repository, but anything is possible. Additionally if the repository was corrupt I don't believe Sourcetree would open it.  

However as Sourcetree simply runs/interprets the Git executable it might be worth taking Sourcetree out of the mix when checking the state of the repository. If open the Terminal for the repository in Sourcetree and run:  

\>git log  

You should see the first few lines of the git log listed, alternatively if the repository has been corrupted you should see a git error.  

You can also use  

\>git reflog  

To give you a history of what has happened to your repository  
<https://www.atlassian.com/git/tutorials/rewriting-history/git-reflog>  

<br />

comments: author: wildfish
body: Thank you for leading me down the right path.

running git log resulted in the following error  
\>fatal: your current branch appears to be broken

Looking up that error message I found that the \\refs\\heads\\master file sometimes gets corrupted. So I cloned the repository to a new folder and then copied the master file over to the old folder and everything is returned to normal.

To clarify, the crash was a computer issue not a sourcetree issue. Sourcetree just lost it's way as a result. All is well in the end.


Tags: bitbucket

history

log
Authentication Issue in Source Tree
Asked by Hasitha:

can't push or pull in source tree it always show login to Atlassian account when i gave credentials ![Untitled.png](/t5/image/serverpage/image-id/29256i981A022ED78F25E6/image-size/large?v=v2&px=999 "Untitled.png")![Untitled2.png](/t5/image/serverpage/image-id/29257iA37DA6F56E8A33A8/image-size/large?v=v2&px=999 "Untitled2.png")


Answers:
author: ????
body: I have the same problem.  
I also want to know the solution.
Can no longer push since password-change
Asked by Lukas Meier (Luki):

I was using Sourcetree quite a while to work on my repo. Due to security reasons, I changed the password a couple of days ago. Naturally, the next time I tried to push, Sourcetree asked me for the password, since my old one, was no longer valid. But even tough I checked several times that I entered the new password correct, I don't seem to be able to push to my repo.

This is what I get

```
remote: Invalid username or password. If your organization manages your account or you've enabled two-step verification, create an app password to log in: https://confluence.atlassian.com/x/9DJmMQ
fatal: Authentication failed for 'https://***@bitbucket.org/***/***.git/'
```

I also changed the password again with the "forgot password" option and I still have the same problem.

(With the new pasword I can login into my atlassian account with no problem)

Nothing else changed like for example the sourcetree version or something similar.

Thank you for your Help


Answers:
author: Lukas Meier (Luki)
body: I found a solution that worked for me:

Close all instances of SourceTree

Delete the passwd file located under

```
C:\Users\USERNAME\AppData\Local\Atlassian\SourceTree
```

Restart Sourcetree

comments: author: Vladimir Grankin
body: Great!
error:password empty
Asked by Uday Praveen:

I always encounter the same error while i pill or push into the bit using the sourcetree. The dialogue box emerges every time asking for the password,even if i type it correct it doesn't move on. The task gets cancelled every time,I am so much frustrated with this.


Answers:
author: Yogesh Mude
body: HI [@Uday Praveen](/t5/user/viewprofilepage/user-id/1605103)

Welcome to the community!

Are you using Windows, if so then try to remove the password file as mentioned in below discussion?

<https://jira.atlassian.com/browse/SRCTREEWIN-7739>


author: Uday Praveen
body: how should this command be used

comments: author: Grigory Salnikov
body: Hello!

As far as I understand there's no need to run any command, you just delete this file:

C:\\Users\\\<your username\>\\AppData\\Local\\Atlassian\\SourceTree\\passwd


author: Yogesh Mude
body: I didn't get ...
> should i use this and id yes
>
> where should i use this


author: Uday Praveen
body: C:\\Users\\PedroMota\\AppData\\Local\\Atlassian\\SourceTree -\> delete passwd file

should i use this and id yes

where should i use this