youngmon/atlassian-qna huggingface dataset:
OAuth "Authentication Successful" issue, can not access repos in Sourcetree 2.6.10 or install 3.3.8
Asked by grobschmit:

I am having issues trying to log on using OAuth

I did have 1.8 installed but uninstalled it to upgrade.  
I am using Google Chrome Version 81.0.4044.92 (Official Build) (64-bit)

I am currently trying with 2.6.10 as it lets me install it (3.3.8 has OAuth during install does not work so can complete install)

After installing 2.6.10 it does not show any of my remote repo's. When adding an account via OAuth I click "Refresh OAuth token" and the page opened and I select my account then says "Authentication Successful, SourceTree has been successfully authenticated. You may now close this page."   
But in the "Edit Hosting Account" screen it says "Login failed, Resource removed"  
![Auth_success.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/89974i87804AB7A2E192BB/image-size/large?v=v2&px=999 "Auth_success.jpg")

<br />

I have tried removing all cookies, all chrome extensions and/or using OAuth in a guest window, no difference.   

in Chrome, before I was able to get this far, I would just keep getting a blank screen and I would keep seeing this error in the console.

"google:1 Uncaught TypeError: page.googleAuthCallback is not a function"  
![googleAuthCallback.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/89975i244036015697E8F8/image-size/large?v=v2&px=999 "googleAuthCallback.jpg")To log onto this forum I kept seeing this above error but when I took the offending line of code and copy/pasted it into the Chrome console to run it again I was able to log on.


Answers:
author: grobschmit
body: OK have solved the issue, after a number of hours/days playing around trying to get things working

Just installed GitHub Desktop, and now am back up and working.


author: grobschmit
body: Ok I have made some progression on getting OAuth working in Sourcetree,

I have installed 3.2.6 and setup my account using basic authentication using my username and a App password generated from bitbucket will full permissions selected. I could not see my list of remote repos but unable to clone (would get an error "This is not a valid source path" then more detail in that "Error: remote: Invalid username or password, fatal: Authentication failed for 'https://grobschmit@bitbucket.org/......" )

Then when I go back into the accounts settings in Sourcetree, I can change my authentication from basic to OAuth and it sets correctly.

But I still can not clone a remote repo


Tags: chrome

oauth
I can?t clone a repository, I can?t pull and push.
Asked by Iurii Kharitonov:

A day ago everything worked. Today I can't do anything. The project is not cloned, is not pulling and pushing. All repositories that I access from the IuriiKharitonov account do not work. Password did not change. I didn't leave my account. Did not do anything.

batch response: Autorization error  
Check that you have proper access to the repository![02.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/89929i328FFBEA06C7A5B8/image-size/large?v=v2&px=999 "02.PNG")


Answers:
author: Iurii Kharitonov
body: ![01.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/89942iF4C0A275B932AF7E/image-size/large?v=v2&px=999 "01.PNG")I managed to solve the problem by switching to the system git. But I don't know why everything worked before, but now not.


Tags: bitbucket
SourceTree???????????????Bitbucke???????????????????????????????????????????????
Asked by otomenoBit0125:

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


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

????????????????????????Firefox???Edge????????????????????????????????????????????????????????????

* <https://support.microsoft.com/ja-jp/help/4028606/windows-10-change-your-default-browser>


Tags: language-ja
OAuth authentication results in "repository not found"
Asked by Ivo.Merks:

Hi,

I have been using sourcetree (version 3.3.8) with a github repository and git (version 2.26).   
Till now, I have used basic authentication (Tools-\> Authentication, Hosting service: github, Host URL: <https://www.github,com>, Preferred protocol: HTTPS, Authentication: Basic) ) and   
it has worked just fine.

I would like to move to OAuth Authentication, because Github has sent out the following   
notice <https://developer.github.com/changes/2020-02-14-deprecating-password-auth/>.

When I do change to OAuth and press "refresh OAuth Token", a new brower tab opens up  
with an empty page and it says "Authentication OK" in sourcetree.  
However, if I try to pull or push something, it says   
remote: Repository not found.  
fatal: repository ' ... ' not found  

I have made sure that I was logged in into github in an open browser tab before pressing the "refresh OAuth Token" , but that did not make a difference.   

In my github account, I do see sourcetree listed under settings-\>Applications-\>Authorized OAuth Apps.

If anybody has any pointers on how to resolve this, I would very much appreciate it.

Thanks,

Ivo


Answers:
author: Ivo.Merks
body: Ivan from Github support pointed us to the right solution.  
All kudos to him.

<br />

Ivan Zuzak (GitHub Support)  
Nov 11, 2020, 8:18 AM UTC  
Hi Ivo,  
Thanks for following up. Yeah, I'm not sure how much support we can provide since SourceTree isn't something we built so we can't know how it works or why it doesn't do something correctly.  
One thing I see is that the organization you're a member of xxx denied the SourcetreeForWindows integration access to its repositories.  
When you said "If I subsequently try to pull or push, it says fatal: repository '" not found." -- were you trying to pull or push to a repository from that organization? If so, then this would explain the issues you're having.  
Can you please ask one of the owners of the organization to approve the SourcetreeForWindows application in the organization's settings? Here are some instructions:  
<https://docs.github.com/en/free-pro-team@latest/github/setting-up-and-managing-organizations-and-teams/approving-oauth-apps-for-your-organization>  
Hope this helps.  
Best,  
Ivan


author: Ivo.Merks
body: As of November 10th, I am still having this issue now using

- git version 2.29.2.windows.2  
- sourcetree 3.3.9   

Any pointer would be helpful.

Thanks,

Ivo


author: Roberto Vieira
body: I'm using Sourcetree version 4.0.2 and having the exact same issue for months now:

* only Basic auth works ????

<br />

Can somebody help getting OAuth to work?


Tags: authentication

https

oauth
Sourcetree stopped enforcing git hooks
Asked by Christopher Dura:

All of a sudden, Sourcetree stopped enforcing husky git hooks to lint commit messages. Trying to commit an invalid message using the GUI behaves as if "Bypass commit hooks" is selected, but it is not.

I'm not sure if this happened because of an update to Sourcetree, I write valid commit messages from muscle memory, but over the last few weeks, I've seen invalid commits getting added by other developers. And, I've just now had time to look into it.

Using the command line works as expected.

```
git commit -m "foo: this should fail"
```

The above command will fail; however, typing the same commit into Sourcetree GUI succeeds.

Looking at the command history in Sourcetree, it shows that it's skipping the hook, but I don't understand why, this started happening out of the blue.

```
git --no-optional-locks -c color.branch=false -c color.diff=false -c color.status=false -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree commit -q -F /var/folders/pg/h0p352h12y12b__wd59m9zhr0000gn/T/SourceTreeTemp.PgpJDA

Can't find npx in PATH: /usr/local/git/libexec/git-core:/Applications/SourceTree.app/Contents/Resources/bin:/usr/local/git/bin:/Applications/SourceTree.app/Contents/Resources/git_local/gitflow:/Applications/SourceTree.app/Contents/Resources/git_local/git-lfs:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/MacGPG2/bin

Skipping commit-msg hook

Completed successfully
```

```
Environment info:

macOS Mojave

Sourcetree: Version 4.0.1 (234)

System Git: 2.23.0
```


Answers:
author: Christopher Dura
body: Just going to answer this myself. There is apparently a bug in the popular npm package I used to install the git-hooks, husky:

<https://github.com/typicode/husky/issues/639>

So, this was not a problem with Sourcetree, sorry :/

If anyone else finds this question, simply downgrade to husky@3.1.0 and that seems to work.

comments: author: Christopher Dura
body: But, there is also bug filed against Sourcetree -- because the underlying cause of Sourcetree not being able to find NODE, is definitely a bug in stree.

<https://jira.atlassian.com/browse/SRCTREE-7184>


author: JarrodCN
body: I can't even find where the "Bypass commit hooks" option is in Sourcetree :\\


author: Christopher Dura
body: [@JarrodCN](/t5/user/viewprofilepage/user-id/4787240) -- When you go to commit in stree, it's beneath the **Commit Options...** dropdown menu.

![Screen Shot 2022-03-03 at 2.01.49 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/186351i8F7287ECB9E1A5C0/image-size/large?v=v2&px=999 "Screen Shot 2022-03-03 at 2.01.49 PM.png")


Tags: git
How to manage different .gitmodules configuration in different branches and merge
Asked by Zambon Federico:

Here is my situation and i can't find a clever solution.  

Two different users need to have two different submodules' configuration so i created two branches of the super Repo with two different .gitmodules.  

I want to be able to merge the two super Repo branches in both directions but keeping the .gitmodules of both branch untouched.  

I'd prefer a solution that doesn't need to input terminal commands if possible.  

Thanks in advance  

Federico


Answers:
author: Zambon Federico
body: I found a workaround for this problem and i'll write it here so it may be useful for someone else.  

I cloned the super repo and inserted the .gitmodules file in the gitignore file.  

I thought it would mess with sourcetree but it didn't so we can have the .gitmodules in our working copy and we can push onto the other branch without messing with the submodules' configuration.  

Obviously if we will have to make changes to the submodules configuration we will need to work on our local version of the .gitmodules file.
Anyway to configure http.cookiefile in SourceTree?
Asked by Jean-Fran?ois Martin:

We have presented our on premise Gitlab instance through Azure AD Proxy. It requires the client to reuse the cookie generated by the Azure Proxy authentication, which can be configured with the git configurable http.cookiefile.

This works fine with the git command line client, but I cannot make it work with SourceTree. Anyone know how to add configurable typically found in .gitconfig to SourceTree?

Thanks.


Answers:
author: Ed Letifov _TechTime - New Zealand_
body: This one implies that it's not possible: <https://jira.atlassian.com/browse/SRCTREEWIN-6494>

This one implies that .gitconfig does exist but is per repository: <https://community.atlassian.com/t5/Sourcetree-questions/Where-does-SourceTree-store-repository-configurations/qaq-p/770529#M21258>

comments: author: Jean-Fran?ois Martin
body: Thanks for the info.

Your second link partially fixes my issue. I did not thought about simply adding this setting in the repo's git config. This fixes it for already cloned repo.

The last issue I have is there is no global setting available, meaning for new repos, users would have to initiate a VPN connection or do it via the command line. Which is fine.

Thank you very much.


author: Ed Letifov _TechTime - New Zealand_
body: I am not a specialist in SourceTree but that second link, in the comments had something talking "sourcetreeconfig" file... Depending on how you read "repo's home directory" - this may sound like global config?
> If the stuff you're looking to modify isn't in this file, you can also try the **sourcetreeconfig** file. That's located in \<your_repo_'s_home_directory\>**/.git/sourcetreeconfig** . .git is a hidden folder, so you'll need to use Terminal to get there or use Cmd+Shift+G in Finder to let you browse to that location.
First time with SourceTree, I could not pull or push
Asked by Jonathan_alvarez015:

First time using this program, I pulled a project and three days later, I commit my changes and push, but then I get an error that I was told that I did not pulled before committing, so I backed up the project and pulled recent changes than got an error saying there was a file that did not merged, It was .meta file so I was told that can be deleted since its a .meta file and then I get this error.

"git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks fetch origin

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks -c lfs.customtransfer.bitbucket-media-api.path=git-lfs-bitbucket-media-api pull origin master  
error: You have not concluded your merge (MERGE_HEAD exists).  
hint: Please, commit your changes before merging.  
fatal: Exiting because of unfinished merge.

<br />

Completed with errors, see above."  

What do I do? I don't want mess up the project for others.


Answers:
author: Mikael Sandberg
body: Hi [@Jonathan_alvarez015](/t5/user/viewprofilepage/user-id/3853391),

Welcome to Atlassian Community.

The MERGE_HEAD exists is a special tag Git puts on the repository when you have an ongoing merge. In order to get rid of that tag you have to abort the merge. Run the following from command line:

```
git merge --abort?
```

You should now be able to do a pull to bring down any changes from the remote repository and merge those changes before you can push anything back the remote.

comments: author: Nwokocha wisdom
body: Awesome response [@Mikael Sandberg](/t5/user/viewprofilepage/user-id/853579)


author: Jonathan_alvarez015
body: Hi [@Mikael Sandberg](/t5/user/viewprofilepage/user-id/853579)  

Thank you for the welcome, your answer has really helped a lot. I learned my mistake that I must make sure I pulled before I push any new changes.
I could not pull and got following error.
Asked by Ryo_Yonezawa:

I could not pull and got following error.

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks fetch origin  
fatal: unable to access '<https://bitbucket.it.xxxxxx.com/xxx/xxxx/xxx.git/>': Received HTTP code 404 from proxy after CONNECT  
Completed with errors, see above.

How can I fix this problem.


Answers:
author: Nic Brough -Adaptavist-
body: 404 means the server is not there. Check your network and if the server you are trying to connect to is running ok.

comments: author: Ryo_Yonezawa
body: Thank you? I will try to check network?
localhost:34106/ Installing 3.3.8 - Crap Software Install Atlasian - Why is this not fixed ??
Asked by Ardeun:

Like others I have this Install problem with 3.3.8 Windows 7

Atlasian / Sourcetree do not seem interested - Pathetic.

[http://localhost:34106/?state=authenticated\&code=](http://localhost:34106/?state=authenticated&code=xAbQd7tbyV4QbCkNeL)


Answers:
author: Peter_Zaremsk?
body: May be this is the same issue that I have - the first installation of SourceTree on my new laptop with Win10.

I copied this screenshot from [here](https://community.atlassian.com/t5/Sourcetree-questions/Location-of-Windows-Install-3-3-8/qaq-p/1317337?tempId=eyJvaWRjX2NvbnNlbnRfbGFuZ3VhZ2VfdmVyc2lvbiI6IjIuMCIsIm9pZGNfY29uc2VudF9ncmFudGVkX2F0IjoxNTg2MzczNTk2MjA2fQ%3D%3D), but it is the same in my case.

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


author: Nic Brough -Adaptavist-
body: They have a bit of a problem with this - no-one will explain what the install problem is, because when they run it as instructed, it works.

Please could you tell us what the actual problem is and what you are doing?
Hooks and lfs folders are created on project root instead of inside .git folder when using git-lfs
Asked by axelucho:

Having this problem I decided to make a fresh clone.

Using git 2.26.0.windows.1

GitLFS 2.10.0

SourceTree 3.3.8

When using sourcetree my folder structure ends up looking like this:

    .git/    hooks/        pre-push        post-checkout        post-merge        post-commit
        lfs/
            cache
            incomplete
            objects
            tmphooks/    pre-push    post-checkout    post-merge    post-commit
    lfs/
        objects
        tmpourFilesAndStuff

core.hooksPath are not currently set.

git lfs env looks ok to me as well:

```
LocalWorkingDir=C:\Users\Axel\Desktop\TacGalac
LocalGitDir=C:\Users\Axel\Desktop\TacGalac\.git
LocalGitStorageDir=C:\Users\Axel\Desktop\TacGalac\.git
LocalMediaDir=C:\Users\Axel\Desktop\TacGalac\.git\lfs\objects
LocalReferenceDirs=
TempDir=C:\Users\Axel\Desktop\TacGalac\.git\lfs\tmp
ConcurrentTransfers=8
TusTransfers=false
BasicTransfersOnly=false
SkipDownloadErrors=false
FetchRecentAlways=false
FetchRecentRefsDays=7
FetchRecentCommitsDays=0
FetchRecentRefsIncludeRemotes=true
PruneOffsetDays=3
PruneVerifyRemoteAlways=false
PruneRemoteName=origin
LfsStorageDir=C:\Users\Axel\Desktop\TacGalac\.git\lfs
AccessDownload=basic
AccessUpload=basic
DownloadTransfers=basic,lfs-standalone-file
UploadTransfers=basic,lfs-standalone-file
GIT_EXEC_PATH=C:/Program Files (x86)/Git/mingw32/libexec/git-core
GIT_LFS_PATH=C:\Program Files\Git LFS
git config filter.lfs.process = "git-lfs filter-process"
git config filter.lfs.smudge = "git-lfs smudge -- %f"
git config filter.lfs.clean = "git-lfs clean -- %f"
```

Any ideas or help would be much appreciated.

Thanks in advance


Answers:
author: Irina Pykhova
body: I have the same problem. Did you find any solution?

comments: author: axelucho
body: Unfortunately not really, it seems to be a bug with git lfs. You can read more about it here:  
<https://github.com/git-lfs/git-lfs/issues/4050#issuecomment-611004257>  

I ended up formating my PC and things work now but god knows why. Good luck.


Tags: git-lfs
Subtree Dissappears After Close and Open Sourcetree
Asked by bariserkus:

Hello,

I am creating successfully a subtree to a remote repo and pull/push successfully. It appears under the "Stashed" tab on the left

However, when I close and reopen the Sourcetree, the subtree that I have defined earlier, disappears.

It does not disappear, if I close the project tab and reopen the project without closing the Sourcetree.

I have seen these two post with the same problem:

[Link1](https://jira.atlassian.com/browse/SRCTREEWIN-1620?error=login_required&error_description=Login+required&state=29b43196-eba6-48a1-b475-cc5b07cafa94 "First link")

[Link2](https://community.atlassian.com/t5/Sourcetree-questions/subtree-pull-hangs-or-pulls-into-the-wrong-folder/qaq-p/368478 "Second Link")

Both links belong to the same person.

I have tried the suggested solution there (clearing cache) but it did not solve my problem.

The person, who stated that he was in charge of developing this part of the Sourcetree, has not posted since 2017. Maybe he left Atlassian and these issues are still there.

Baris


Answers:
author: bariserkus
body: I found out that this is consequence of another major issue with Sourcetree versions came after 3.2.6. After this version, a major bug is introduced, probably something related to authentication, and it results a constant red exclamation mark on the remote button. This mark can be fixed in version 3.2.6, but not in the later versions. So, I am staying with version 3.2.6 for now.


author: bariserkus
body: Could anybody help me with this issue?
What are the possible consequences of merging branches together?
Asked by Jacquelynn Gothard:

Hi!

I'm new to Sourcetree and to working with Git/Github. I'm in a little bit of a bind: I've created 3 separate branches and made 3 pull requests, one for each branch. The reviewer would like all of the work on one PR. It looks like the best way to achieve this now would be to combine all of the work onto one branch, and then close the PRs for two branches that were merged.

I think I can do that from Sourcetree, and then push the changes to main branch, right?

Essentially, I'm wondering about potential problems/snafus in moving forward with this supposition.

Thanks!

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


Answers:
author: Justinas Jur?iukonis
body: If you were working on different parts of code, then there should be no issues, final branch will have all changes from these branches.  

If you were working on same parts, then it's possible to have all sort of merge conflicts. Usually it's easy to fix in your own code when you know how it should be.  

One of issue I usually get is when one branch deletes file (e.g. code was split to different files) and another branch changes something in that deleted file. Then merge conflict can return this deleted file.

But everything depends on situation

comments: author: Jacquelynn Gothard
body: [@Justinas Jur?iukonis](/t5/user/viewprofilepage/user-id/1215363) , thanks for the reply! I got it all sorted out. :)
SourceTreeSetup-3.3.8.exe hangs on install.
Asked by mjones:

I have tried to upgrade SourceTree on a windows 7 machine and it constantly hangs.

I have disabled the firewall.

I have completely removed all references to the install from the machine including cleaning the registry.

I have rebooted the machine and did a clean install and the attached pic constantly happens.

Why is the software so difficult to install or upgrade?


Answers:
author: Kozinaka
body: I have the same trouble.
Moved pages only show up when searching or using a shortcut
Asked by Penny Schenkkan:

Howdy,

I moved a bunch of pages from one Confluence space to another and now they only appear in the content list on the left if I search for them or use the Shortcuts. Otherwise, the Content list on the left is empty.

![empty content.png](/t5/image/serverpage/image-id/322678i91F1EAC08179A7FA/image-size/large?v=v2&px=999 "empty content.png")![full content list.png](/t5/image/serverpage/image-id/322679i696A8F1C39D343C8/image-size/large?v=v2&px=999 "full content list.png")


Answers:
author: Shawn Doyle - ReleaseTEAM
body: It's possible they are above the page you have as the home page for that space. The CONTENT menu will show the page tree from the assigned home page and descendants. Pages above that home page won't show, yet still can be found via search.

If you open one of the pages via the shortcut, look at the breadcrumbs and see where it is living in the page tree. You can then move it to a better location. If you don't want it nested under the current home page for that space, you may need to assign a different page or create a new one.

comments: author: Penny Schenkkan
body: That's it! Thank you!!


Tags: cloud

confluence-cloud