youngmon/atlassian-qna huggingface dataset:
How do I resolve this SSL 507 error?
Asked by Miguel Adrover:

I am receiving this error when using source tree to pull local repos.  

abort: error: _ssl.c:507: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed  
fatal:

I have tried the solution on this page - <https://confluence.atlassian.com/display/SOURCETREEKB/Resolving+SSL+Self-Signed+Certificate+Errors>

this only granted me the ability to view the repo through safari.

The os we are using is yosemite.

Thanks


Answers:
author: Miguel Adrover
body: we were able to get one of our machines up and running with 1.5 but that does not help us much with 2.5.


Tags: mac
SourceTree| Pulls/Push Timeout/Fail until Pull completed from another tool
Asked by jwaskiewicz:

This is a strange but recurring issue for my team. We are all using SourceTree to access a remote Git server hosted in Bonobo on VM in our data center. It generally works great. However, every once in a while an issue will occur where all pulls and pushes timeout/fail. The effect seems contagious as it will start with one machine but spread.

The stranger part is the fix. If I perform a pull action through Visual Studio or another tool, it will then fix Pull/Pushing through SourceTree. Any ideas?


Answers:
author: jwaskiewicz
body: Will do. Thanks for the idea.


author: Seth
body: Are the other tools pulling on behalf of the same local repository, or just the same remote?When the issue occurs, I would recommend going to the command line. Start by testing the git command line client with the exact command that is logged in SourceTree, then gradually remove any unnecessary pieces to see if you can narrow down a particular option that may be related to the problem.
Refresh a Branch from Master
Asked by James Foley:

We have a project that created a branch for a future release of the product, but work continued in the master. Now we would like to update the branch with changes made in the master, but without merging our branch changes int the master as we aren't ready for that step just yet.

Is this possible in SourceTree, and if so how?

thanks


Answers:
author: Seth
body: The merge operation is one-way, not two-way. If you check out the release branch, then merge from master, the master branch won't be modified, and the release branch will get all the changes that have been made to master.

comments: author: Tim Crall
body: That's correct - but this also may be a situation to think about using a rebase instead.


author: James Foley
body: Thanks Seth.


author: James Foley
body: Thanks Tim, just read up on rebase but I think its a bit more than we need at the moment, but thanks for pointing it out, as it may well be useful in the future.
Is there a possibility to turn off confirm dialog when discarding a file?
Asked by Sascha Mayr:

I quite often discard a file in SourceTree and I can see in the diff view what was changed in this file, so it would be nice if I wouldn't always been asked about discarding that file.


Answers:
author: Bal?zs Szakm?ry
body: This is not configurable in SourceTree. If you need to always revert a file, you might want to put it in your .gitignore.
How to create a new remote repo on Xcode Server using SourceTree?
Asked by Tommie N. Carter, Jr., MBA:

I cannot seem to create a new repo from my working machine onto a remote Xcode Server although the permissions seem fine. I can create a new repo on the server (outside of SourceTree) and then connect and use it within SourceTree. However the Xcode Server tools are less friendly about naming the repo and only allow me to name it to the project name.

SourceTree has more flexibility in naming so I'd prefer to use that tool however as noted I am having an issue creating the actual remote repo on the Xcode Server (it seems that only Bitbucket and Github are allowed from within the UI - No custom URI?).

Is there some way to totally manage my git workflow from within SourceTree? (including the initial remote repo creation).

My current Xcode server repos point to:

<https://servername.local/git/reponame.git>

I am using Xcode 6.3.2/6.4/5.11 on MacOSX 10.10.4


Answers:
author: Seth
body: SourceTree is a UI wrapper for Git. The only functionality I know of that SourceTree will provide that cannot be directly translated to a Git command is its "extended integration" feature set, which allows it to use the APIs of certain supported hosts. Currently, those hosts are Bitbucket, GitHub, and Stash (basically a self-hosted version of Bitbucket).

If Xcode Server provides an API for creating repositories (or running generic commands), you might be able to get some traction with a [feature request](http://jira.atlassian.com). In the meantime, if you can't do it with git commands on your local machine, you can't do it with SourceTree.


Tags: xcode
A basic question for push and pull
Asked by Hui Zhao:

Say team member A made code change and pushed it to the remote server.(Bitbucket)

I am going to pull it to my local. However I found that there is still an error. I fix it and ready to push it. What is the correct steps.

Would you please use step 1,step 2 etc..?

Sourcetree.PNG

Thanks  
[](https://community.atlassian.com/t5/Sourcetree-questions/A-basic-question-for-push-and-pull/qaq-p/4692?attachment-id=11118){#link_116a4739bb7879}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/91/1/Sourcetree.PNG){#display_116a4739bb7879_0}


Answers:
author: Bal?zs Szakm?ry
body: 1. Pull
2. (resolve merge conflicts, if any)
3. Push

comments: author: Hui Zhao
body: Do I have to pull his code first? See my updated image.


author: Bal?zs Szakm?ry
body: Edited the answer to match the picture.


author: Tim Crall
body: don't forget to commit whatever changes/fixes you made before pushing
sophos AV
Asked by Ian:

Is there any documentation available that describes the use of SourceTree with Git on a windows 7 and windows 8 machine with Sophos Antivirus?


Answers:
author: Ian
body: SourceTree is running slow after we installed Sophos AV, we try to exclude the folders with no luck.

Could you tell me which folders to exclude and the temp folders too ?

comments: author: rrudnicki
body: Hi Ian,

If you excluded the folders with no luck, maybe the antivirus isn't the problem. For testing purposes, could you disable the antivirus, restart your computer and check if the slowness still remains? If not, can you check your windows firewall as well? You can do the same test than the antivirus (disabling) or try to add a rule to allow all traffic with sourcetree.

Regards,

Renato Rudnicki


author: rrudnicki
body: Hi Ivan,

If do you want to exclude scanning folders and files from Sophos, maybe this link can be helpful.

<https://www.sophos.com/en-us/support/knowledgebase/116368.aspx>

If this is not what are you looking for, please give us more details.

Regards,

Renato Rudnicki


author: no_longer_in_sudoers_file
body: I don't know of any documentation with respect to Sophos specifically. What problem are you seeing?
mutil github accounts & ssh key config issue.I tried 'ssh-agent bash'
Asked by Hao Peng:

???.png

.ssh/config

```
Host id.github.com    HostName github.com    PreferredAuthentications publickey    IdentityFile ~/.ssh/id_rsaHost b.github.com    HostName github.com    PreferredAuthentications publickey    IdentityFile ~/.ssh/b_rsa
```

the question is: when I add ssh key using ssh-add, something seems to be wrong.  
[](https://community.atlassian.com/t5/Sourcetree-questions/mutil-github-accounts-ssh-key-config-issue-I-tried-ssh-agent/qaq-p/39484?attachment-id=1428){#link_1174037bb483a0}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/1150/1/%E6%97%A0%E6%A0%87%E9%A2%98.png){#display_1174037bb483a0_0}


Answers:
author: Bal?zs Szakm?ry
body: How is this related to SourceTree?
Installing SourceTree in an air-gapped environment
Asked by Gurcharan Flora:

We are installing SourceTree in an air-gapped environment with no internet access. The installation of SourceTree does not complete because it is unable to download additional software. Is there a complete download available?


Answers:
author: Gurcharan Flora
body: Thanks Michael. I will try this out tomorrow.

Regards

Gurcharan


author: minnsey
body: SourceTree attempts to download a copy of Git and and copy of Hg and install them into the %localappdata%\\Atlassian\\SourceTree folder. However SourceTree will work with existing installations of Git and Hg.

There is no complete download, but you could use these instructions for a 'silent' installation <https://confluence.atlassian.com/display/SOURCETREEKB/SourceTree+Silent+Installation+-+Windows> to get the same result.

Assuming you are in on a Windows machine.


author: Seth
body: @Kieran Senior \[Atlassian\] @Michael Minns Is such a package available?
Restore files deleted during an old commit
Asked by DanB:

Hi,

I have the id of a commit in which a bunch of files were erroneously deleted. There have been hundreds of commits since. What I'd like to do is restore these deleted files.

I've pulled the git repo down to SourceTree and clicked 'Jump To' then selected 'Commit...'. In there I pasted the commit id and searched. I now have the commit highlighted in the main window.

So from here, how do I (a) locate the files I need to revert (I know which ones I'm looking for but can't find out how to see them in this commit) and (b) how do I then revert these files so that they're back in the most up to date commit?

Do I need to right-click the commit containing the deleted the files and check it out? If so, that tells me it's going to create a 'deatached head' - is this okay?

Thanks for any pointers folks. As a git noob I really appreciate any assistance, no matter how simple this may seem to some.


Answers:
author: Bal?zs Szakm?ry
body: Please read my answer to a very similar question [here](https://answers.atlassian.com/questions/15838781/answers/15838867).
Will support for "View > Show Command Output" be available in Windows?
Asked by Daniel Jaquez:

In Sourcetree there is support to see the command history that the GUI generates to Git under "View \> Show Command Output". I am using windows version 1.6.14.0 and that feature is not available. Are there plans to add this feature to the windows version? If so, is there a general timeframe we can expect to see it?

Thanks!


Answers:
author: Daniel Jaquez
body: There is an issue in JIRA for this feature.

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

If you are interested in seeing a command long in windows please visit the link above and click "Add vote for this issue" on the right.


author: Bal?zs Szakm?ry
body: You should search <http://jira.atlassian>[.com](http://jira.atlassian.com) to see if there is a feature request for this. If yes, (read the contents and) vote for it. If not, you can create one. In both cases, please post the link here in a comment so others can get there easily.


author: Dan V
body: I have the same question: is this feature going to be available soon for windows as well?
how to recovery the file to commit after stop track it in sourcetree?
Asked by st d:

in sourcetree, I stop tracked a file yestoday, but I want to commit it to repository. how can i do it? please help me


Answers:
author: Bal?zs Szakm?ry
body: (Assuming you right-clicked on a file and selected the "Stop tracking" option.)

This command stages a change that deletes the file (line with a red minus in the beginning in the pending changes), but leaves the file intact on your disk (it shows as an untracked file):

image2015-5-22 11:10:26.png

You can undo this by right-clicking on the line with the red minus and selecting "Discard".

EDIT: once this deletion is committed, this is how to undo it:

1. Select the commit where you removed the file.
2. On the bottom, right-click on the file name, select Log selected.
3. In the Log window, select the last revision where the file was still there (probably the second commit from the top), right-click on it and select "reset to commit".
4. The file now shows up as an uncommitted change, commit it.

[](https://community.atlassian.com/t5/Sourcetree-questions/how-to-recovery-the-file-to-commit-after-stop-track-it-in/qaq-p/336993?attachment-id=3643){#link_117403b2edf65f}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/10067/1/image2015-5-22%2011%3A10%3A26.png){#display_117403b2edf65f_0}

comments: author: st d
body: I commit this red minus file to repository. I can't find "discard" option.


author: Bal?zs Szakm?ry
body: I edited the answer to show the recovery steps for this case as well.


author: Seth
body: I think in step 3 you want to "Reverse commit".


author: Bal?zs Szakm?ry
body: He does not necessarily want to revert the other changes in the commit.


author: Seth
body: True, but "reset to commit" will change the history, which will be a problem if he's pushed.


author: Bal?zs Szakm?ry
body: This reset is not that reset. :) It resets a file to a certain state, not the commit history to an earlier point.


author: Seth
body: Ah, not clear that you meant to right click on the FILE rather than the COMMIT:"select the last revision where the file was still there ... right click on it".


author: Bal?zs Szakm?ry
body: Step 3 happens in the file history window. (Opened in step 2.)


author: st d
body: Execute a command to stop tracing a file


author: Bal?zs Szakm?ry
body: What exactly do you mean by "I stop tracked a file"?
HEAD vs Master
Asked by Sean Thomson:

What's the difference ?


Answers:
author: Tim Crall
body: Briefly, "master" is a branch. "HEAD" is a pointer to whatever commit you have checked-out right now.


author: Bal?zs Szakm?ry
body: Google is your friend. :smile: <http://stackoverflow.com/questions/4386959/difference-between-head-and-master>
SourceTree - Diff for one file
Asked by Anne WALTER:

Is there a way in SourceTree to compare one given file between two branches?

Using a command line, it would be:

git diff \<one_branch\> \<another_branch\> \<my_file\>


Answers:
author: Tim Crall
body: You can select any two commits (using CNTRL-click or CMD-click) to do a diff between them. The just select the file from the list in the lower left corner that you want to see the differences on.

comments: author: Anne WALTER
body: Yes, this is what I was looking for. Thanks.


author: Markus
body: but this only compares to the last checked out/working version, or do i miss something?


author: Tim Crall
body: If you use Control-click (or Command-click) on a Mac, you can select any two arbitrary commits and it compares between them.


author: Markus
body: yes: Please!

i am switching from cornerstone (svn) to sourcetree. what i really miss is an easy way to compare two versions of a file. cornerstone has a really great history/log view even on a single file.

markus

comments: author: Tim Crall
body: See my accepted answer above - you can easily do this by selecting two commits at thes ame time (using CNTRL-click or CMD-click) and then selecting the file you are interested in in the lower left corner file listing.


author: Markus
body: your are right. that works. i must have missing something with my first tests. thank you


author: Bal?zs Szakm?ry
body: There is no way to do this form the SourceTree UI.

The closest you can get to this: You can use the "Log selected" option from the context menu that comes up when right-clicking a file name to display the history of the file in the current branch. Within this, if you select two states, it gives you a diff between them. Unfortunately, this only works within one branch.

comments: author: Anne WALTER
body: Thanks for your quick answer.Generally speaking, I really miss in SourceTree a "Diff..." menu, allowing to compare the selected file to another commit/tag/branch of that file.


author: Bal?zs Szakm?ry
body: The same thing seems to work between branches as well in the File history window of Git Extensions.
How to edit comment of last commit
Asked by Dante Hernandez:

I did a commit in SourceTree (Bitbucket git repository) and then realized I forgot to add something to the comment. Is there a way to update only the comment?


Answers:
author: Bal?zs Szakm?ry
body: You have to use amend to change the commit message. Press the commit button and select "Amend latest commit" from the commit options on the right, above the commit message box.

If your commit was already pushed to the server, your push will be rejected afterwards. In this case you have to do a force push from the command line (git push --force) or another Git client that has this option. N.B. Your repository might be configured to reject force pushes. In this case, there is no way for you to change the commit on the server.

comments: author: Tim Crall
body: You really shouldn't use force push to do this on an already-pushed commit anyway, if there's any chance that other developers have pulled that commit.


author: Dante Hernandez
body: Hi,I tried to use 'Amend latest commit' and it asks whether I want to replace comment with message from previous commit which made no sense to me in a first moment. Now I see the 'Amend latest commit' option remains selected (marked) which I guess means it will take effect when pressing Commit button, correct? I'll try that on commit messages not pushed to remote repository. I think I won't try the force push option, I'm still kind of newbie on Git and don't want to make a mess.Thanks for your replies.


author: Bal?zs Szakm?ry
body: That question is only about whether you want to load and edit the previous commit message or start with a blank text. Whichever you choose, it will overwrite the commit message of the last commit with whatever you have when you press the commit button.
Authentication in Source Tree
Asked by Daniel Bochen:

Hi  
I'm an new user so you have to forgive me mine "noob" way of posting.  
I have an issue in Sourcetree. After few weeks of using he is asking me for Authentication,  
"Login required for: \[Proxy Server\] "   
He wants an User name and password from Bitbucket, Sourcetree or Atlassian??  
I tried all of them without success.   
I can not pull or push "commits" to server. (Bitbucket)

BR Jamal79


Answers:
author: Bal?zs Szakm?ry
body: You can set the credentials for your proxy in Tools\\Options\\Network. If you are behind a proxy, your network admins should know what to write here.

comments: author: Daniel Bochen
body: Ok, txh for quick respond.

I will contact our IT-guys.

GR Jamal
Recover the deleted files not in repository
Asked by jasondaicoder:

I accidentally deleted some local files which are not in repository in SourceTree. Can anyone advise how I can restore those files.

Environment: Windows 8


Answers:
author: Bal?zs Szakm?ry
body: Even though you caused your problem inside SourceTree, the solution has nothing to do with SourceTree. Use any of [these tools](https://www.google.com/search?q=windows+undelete&ie=utf-8&oe=utf-8)/methods to undelete your file.


author: sreekumar_menon
body: Jason- you said it was not in repository . so you never committed?
How can I recover remote branch
Asked by David Duriot:

Hello,

I delete a remote branch, and even after a reclone, the remote branch no longer appears in the list. I don't understand 'cause, the delete is local right ?


Answers:
author: Bal?zs Szakm?ry
body: If you did this by right-clicking the branch name in the Remotes/origin section, you should have read this:

image2015-5-20 13:29:14.png

The way to get it back is to find somebody else who has a local copy of it and ask them to push the branch to the server.  
[](https://community.atlassian.com/t5/Sourcetree-questions/How-can-I-recover-remote-branch/qaq-p/276267?attachment-id=9327){#link_116a487a3d64aa}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/8616/1/image2015-5-20%2013%3A29%3A14.png){#display_116a487a3d64aa_0}

comments: author: Seth
body: Exactly. If you delete a local branch (one you had checked out at some point in the past), it will only be deleted locally. If you delete a remote branch (any branch in your repo that is preceded by the name of one of your remotes, like "origin/"), that branch will be deleted from the remote.If you don't want to see remote branches in your log, uncheck the "show remote branches" box, or change the dropdown next to it to only show "current branch".


author: David Duriot
body: Ok thank you it works !
is there a configuration file for custom actions?, or how do I share my set-up with other users?
Asked by Terry Holmes:

I have added many scripts to tools/options/custom actions, and I want to share these with other users rather than having to repeat the registration of the scripts for each user. I'm looking for a way to share (export/import) my entries.


Answers:
author: Terry Holmes
body: I have found out about this, so if anyone wants to know, reply to me.


author: Bal?zs Szakm?ry
body: There is no way to do this from the SourceTree UI, but it might be possible to copy something from the AppData folder.
I am trying to access Rest API on confluence to retrieve information
Asked by Venneesha:

Trying to replicate the steps in

Basic auth for REST APIs . {#toc-hId--438423047}
------------------------------------------------

$Text = 'your_email@domain.com:your_user_api_token' $Bytes = \[System.Text.Encoding\]::UTF8.GetBytes($Text) $EncodedText = \[Convert\]::ToBase64String($Bytes) $EncodedText

throws error '$Text' is not recognized as an internal or external command,  
operable program or batch file.

'$Bytes' is not recognized as an internal or external command,  
operable program or batch file.

'$EncodedText' is not recognized as an internal or external command,  
operable program or batch file.

I am using Windows.

please let me know what am I doing wrong?

Not sure if i need some extra access or permissions.


Answers:
author: Andrii Maliuta
body: Hello [@Venneesha](/t5/user/viewprofilepage/user-id/5293915) ,

The code looks a little strange. Do you want to use the **Powershell** script to access data via Confluence REST API?

If yes, you can save the script as .ps1 file and run it with Pshell cli tool:

'**confluence.ps1**'

```
$Text = 'your_email@domain.com:your_user_api_token' 

$Bytes = [System.Text.Encoding]::UTF8.GetBytes($Text) 

$EncodedText = [Convert]::ToBase64String($Bytes) 

$EncodedText
```

On WIndows just open Powershell and run it

```
.\confluence.ps1
```

On Linux (Ubuntu)

```
pwsh confluence.ps1
```

comments: author: Venneesha
body: thanks for the response [@Andrii Maliuta](/t5/user/viewprofilepage/user-id/484201) .

Can you please let me know the process for Gitbash or from cmd please?


author: Andrii Maliuta
body: Install Powershell (<https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell?view=powershell-7.3>) as CMD or GItBash need to have PS on PATH.

After you install it and it is present in system PATH, you can just use the '**pwsh**' and specify the script file name as a parameter to run it:

\`\`\` pwsh SCRIPT_NAME.ps1 \`\`\`

Please note that you can use any CLI tool (HTTP client) to interact with Confluence REST API , like: **Curl** , **Httpie**, Any programming language client, etc.


author: Venneesha
body: Appreciate your resposne[@Andrii Maliuta](/t5/user/viewprofilepage/user-id/484201)

I was unable to install powershell as I am working on my company laptop and so asking the commands for gitbash. Even VS code should be fine.

Thanks!


author: Andrii Maliuta
body: [@Venneesha](/t5/user/viewprofilepage/user-id/5293915) ,

Yes, sure, you can use any tool, but using VS Code, anyway you need to install the Powershell addon/extension - It will just do installation and configuration for you.

Please note that PShell is a framework: command-line shell, a scripting language, and a configuration management framework, so it is required anyway on your laptop - it is up to you how to get it: installing with executable, binary archive, some addon inside other tool, etc.


Tags: api

cloud

confluence-cloud

rest-api