youngmon/atlassian-qna huggingface dataset:
Unable to clone git repository
Asked by rsteffib:

Whenever I try to clone using SSH am getting the below error:

**ssh: connect to host bitbucket.org port 22: Connection refused**   
**fatal: Could not read from remote repository.**

**Please make sure you have the correct access rights**   
**and the repository exists.**

If I try to clone through HTTPS nothing happens after the below msg:

**Cloning into 'repo_name'...**


Answers:
author: Theodora Boudale
body: Hi [@rsteffib](/t5/user/viewprofilepage/user-id/4676619) and welcome to the community.

Are you able to clone the following public Bitbucket repo (for testing purposes), either with SSH or with HTTPS?

* <https://bitbucket.org/mirror/git/src/master/>

If the computer you are trying to clone from is behind a corporate firewall, your network administrator may need to make specific network configuration changes to permit SSH connectivity from your computer, e.g. open certain ports or whitelist our IP addresses.

If this is the case, you can find the ports we use and our IP addresses here:

* <https://support.atlassian.com/bitbucket-cloud/docs/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall/>

We also have the following guide for troubleshooting network issues that may be useful:

* <https://confluence.atlassian.com/bbkb/troubleshooting-network-issues-389778693.html>

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Repo size warning still get displayed after cleanup & push with BFG
Asked by Mahmoud Jorban:

Hi,

I have a large repo size with almost 2.02 GB, so I have duplicated it to another temp repo to test the BFG cleaner on it before using the BFG on the original repo, after following the BFG documentation, and ran all the needed commands, then pushing the decreased sized repo(415MB) to the remote repo, the repo size became 2.15 GB.

So, please run a **git gc** on the remote to clean up the server. Thank you!


Answers:
author: Theodora Boudale
body: Hi [@Mahmoud Jorban](/t5/user/viewprofilepage/user-id/4676583),

I can see in our system that your Bitbucket Cloud account has access to 2 repos with a size of around 2 GB. I believe that the temp repo is the one whose name has **_temp** in the end? I ran a git gc for this repo, but its size remains 2.1 GB.

Could you please let me know:

**1.** What is the output of the command **git count-objects -Hv** in your local mirror clone where you ran BFG?

**2.** Did you run the following command in that mirror clone prior after you executed BFG and prior to pushing?

    git reflog expire --expire=now --all && git gc --prune=now --aggressive

**3.** Could you please confirm if you pushed your changes to the Bitbucket repo whose name ends in _temp?

Kind regards,  
Theodora

comments: author: Mahmoud Jorban
body: Hi [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) ,

Regarding the first point, after running the command, I get the following:

```
count: 0
size: 0 bytes
in-pack: 324456
packs: 1
size-pack: 380.59 MiB
prune-packable: 0
garbage: 0
size-garbage: 0 bytes
```

And regarding the second point, yes, I ran that command, and I followed the same instructions in the BFG official doc page [here,](https://rtyley.github.io/bfg-repo-cleaner/) under the **usage** section.  

And regarding the third point, yes, I pushed my changes to the repo whose name ends with **_temp**.


author: Theodora Boudale
body: Hi [@Mahmoud Jorban](/t5/user/viewprofilepage/user-id/4676583),

Thank you for the info. I ran another git gc for the repo, but its size remains 2.1 GB.

I went ahead and created a support ticket for you so we can investigate this further, using the email of your community account.

You should have received an email with a link to the support ticket. Just in case you haven't received it, please feel free to let me know and I can post the ticket URL here. The ticket will be visible only to you and Atlassian staff, no one else can view its contents even if they have the URL.

If you have any questions, please feel free to let me know.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Working Copy file appears as "unmodified file"
Asked by Adam Seitz:

I have a file that when I change it, it appears in the working copy changes as an "unmodified file". When it is actually unmodified, though, it doesn't appear in the working copy changes list.

I have the Working Copy thing set to "Show pending", so it shouldn't show an unmodified file, yet this file appears as "unmodified", when I know that it is? Does anyone know why it does not show me the changes? Please ask if you need more details.


Answers:
author: Seth
body: The scenario you describe will always occur if you make whitespace changes, but have you SourceTree diff viewer configured to ignore whitespace.

Checking the "ignore whitespace" option only effects the display of the diff - Git still perceives the file as modified.

If whitespace changes aren't the culprit, please let us know what type of file you are dealing with and what changes you are making.

comments: author: Adam Seitz
body: Thanks for the quick reply!

Unfortunately I'm changing more than the whitespace -- it seems to occur with any change I make to the file. It's a large XML file (about 40k lines, 6.2 MB) that looks something like this throughout:

```
...	&lt;String _locID ='75065'&gt;8 Huamincas&lt;/String&gt;	&lt;String _locID ='75066'&gt;6 Huamincas&lt;/String&gt;	&lt;String _locID ='75067'&gt;9 Huamincas&lt;/String&gt;	...
```

Adding lines, deleting lines, and changing lines all results in the same "unmodified file" issue. I made a copy of the file and gave it a different name to see if it would behave the same, and it does, so it must be something about the file's contents, and not some kind of issue with git mistracking that particular file path or something. The large size was suspect to me, but I have a larger XML (170k lines, 6.5 MB) that is working fine.

Here's a download link to the entire file in question:

<http://www.mediafire.com/view/9azyvt6456c36ov/stringtabley.xml>

Thanks again for your help.


author: Seth
body: Try opening the terminal and running a git diff command on the file. In previous questions, Atlassian employees have asserted that they are merely rending the output of that command.

It is possible git diff is choking on the size of the file, but you may get an error message that will be helpful.


author: Adam Seitz
body: ```
PS C:\...\mod &gt; git diff HEAD -- "data\stringtabley.xml"diff --git a/data/stringtabley.xml b/data/stringtabley.xmlindex 4ed62ee..de6f294 100644Binary files a/data/stringtabley.xml and b/data/stringtabley.xml differ
```

So oddly, it seems to be regarding it as a binary file. Some Googling reveals Git won't recognize UTF-16, so I just converted to UTF-8; I don't think I really had any reason to be using UTF-16.

Thanks for your help!


author: Seth
body: Thanks for sharing the solution.
Cannot pull from origin server since setting up git svn
Asked by 13m2:

Hello,

I've setup Sourcetree to work with a SVN repo, as described here: [](/questions/309866/sourcetree-git-svn-fetch-from-svn-repo)<https://answers.atlassian.com/questions/309866/sourcetree-git-svn-fetch-from-svn-repo>

Now I cannot pull from my git origin server (bitbucket) anymore, I am getting this error:

What could be causing this?

Thanks

Andre

```
git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree fetch origin git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree svn fetch Client certificate filename: Use of uninitialized value $filename in chomp at /usr/local/git/lib/perl5/site_perl/Git/SVN/Prompt.pm line 88.error: git-svn died of signal 11Completed with errors, see above


```


Answers:
author: 13m2
body: solved it by doing a gitt pull from the terminal.

I am getting a new error though now that I want to push my changes to the SVN repo

```
Unable to determine upstream SVN information from working tree history
```

Seems like this whole git svn setup is not the easy solution I hoped for.

comments: author: 13m2
body: OK, I think this all could be about the working copy being pushed into SVN has to be originally checked-out from the same SVN repository.

But I continu having problems making connections from Sourcetree with this SVN repo, which worked earlier. I converted my working copy into a SVN working copy and am now using a SVN client now to connect to the SVN repo instead. This will render my earlier history useless as it is no longer updated by git. Wonder if, instead of using Git Svn I could use git and svn at the same time? That is use the svn client to interact with the svn repo and git to keep my own repo up to date?


Tags: git-svn
I have trouble installing at Windows 8
Asked by Minsik Kim:

I am using Windows 8.1 K, but whenever I start to install sourcetree

it says

### [The application was unable to start correctly (0xc0000142)](http://www.tomshardware.com/forum/33518-63-application-unable-start-correctly-0xc0000142-click-close) {#toc-hId-1481375193}

Is there anyway to fix this error?

If you need any more info on my computer, please e-mail me

Thank you.


Answers:
author: Minsik Kim
body: I still couldn't install it :(

maybe it is just my computer's problem.

Thank you for answering


author: HenriqueA
body: Hi Minsik,

Its a generic windows error message, it seems that there is some thing causing the error on your environment.

Looking for this error I've found some possible causes and solutions of this issue:

* - Install the latest version of SourceTree ([](http://www.sourcetreeapp.com/)<http://www.sourcetreeapp.com/>)
* - Make sure all of your hardware drivers are updated (specially the video driver)
* - Try to disable the Antivirus/Firewall for a test
* - Check if there is no virus or malware on your system, there are some virus that can cause this error on some applications
* - Keep your windows updated

If no one of these steps works I would suggest you to use the SFC ([](http://en.wikipedia.org/wiki/System_File_Checker)<http://en.wikipedia.org/wiki/System_File_Checker>) to further investigate on it.

Kind Regards,  
Henrique Lechner
Git-Flow - Features that fail testing?
Asked by badkeith:

I was hoping to design a git workflow that was aligned with best practices for larger dev teams. Git-flow seems like a great solution. The one concern I have has to do with the develop branch being the first integration point for features, and also the starting point for the release branch. What happens when a feature that is planned for a release and has been merged into the develop branch fails UAT? If there are 10 features in the develop branch and 1 is pulled from the release, how do we create our release branch? How do others handle this with Git-Flow? Are there other branching strategies that can handle it?


Answers:
author: TimP
body: Hi Keith,

At Atlassian it's rare that we pull code out after being merged. That said, you can revert a merge with **git revert** by using the **-m** flag. See "Reverting a merge" on [this page](http://git-scm.com/blog/2010/03/02/undoing-merges.html). This should work fine with git-flow, as it generates a reverse patch commit that backs out all of the changes introduced by the merge. You can then merge this commit to any other branches in your git-flow workflow as normal.

cheers,

TIm


Tags: bitbucket-cloud

cloud

git

git-flow
Is there a Simplified Chinese language package for SourceTree Version 1.7.3 (1.7.3) on mac?
Asked by zhang jiachao:

Is there a Simplified Chinese language package for SourceTree Version 1.7.3 (1.7.3) on mac?

![](https://answers.atlassian.com/upfiles/QQ20140627-1@2x_2.png)


Answers:
author: zhang jiachao
body: ![](https://mce_host/upfiles/QQ20140627-1@2x.png)


Tags: language

language-zh
Using Gitflow with Sourcetree - Branches not getting created
Asked by john van strien:

I followed the instructions on [this page](http://blog.sourcetreeapp.com/2012/08/01/smart-branching-with-sourcetree-and-git-flow/) to setup Gitflow in Sourcetree on my Mac. I then created a new feature branch, made some changes and then commited the new code. And yet the graph in Sourcetree does not show the new feature branch. I tried doing this a couple of times. No joy. What can I be doing wrong? Where is some more extensive documentation?


Answers:
author: john van strien
body: This is the contents of project/.git/config file:

```
[core]	repositoryformatversion = 0	filemode = true	logallrefupdates = true	autocrlf = false[remote "origin"]	url = git@git.assembla.com:********.git	fetch = +refs/heads/*:refs/remotes/origin/*	push = +HEAD:refs/heads/master[branch "master"]	remote = origin	merge = refs/heads/master[gitflow "branch"]	master = master	develop = develop[gitflow "prefix"]	feature = feature/	release = release/	hotfix = hotfix/	support = support/	versiontag = [branch "feature/SQLException_Handling"]	remote = origin	merge = refs/heads/feature/SQLException_Handling[branch "feature/SQLException_Handling_01"]	remote = origin	merge = refs/heads/feature/SQLException_Handling_01

```

The two branches at the bottom are the two that I created and neither of them were displayed as branches in the SourceTree graph, at any time (i.e. right after they were created, during edit or after the changes were committed.


author: Seth
body: You should see the feature as soon as you create the feature branch, prior to making any commits. At that point it will show up beside develop (or whatever your name is for that branch). If it isn't there, then there was likely an error in starting the feature.

comments: author: john van strien
body: The feature does not show up. Where is any documentation explaining what would cause that? Is it more likely a git issue or a SourceTree/Gitflow issue?


author: Seth
body: Forget the graph for a moment. Do these feature branches show up in the list of local branches? You may have to expand a "feature" folder.


author: john van strien
body: Yes, they do.


author: Seth
body: Do you have your graph set to display "current branch"? If so, change it to "all branches".


author: john van strien
body: It was already set to display all branches.On sort of a side note, the forum website is reporting that the first response I made to your answer was made 7 hours ago, when actually I made it months ago.


author: Seth
body: Sounds like there is a bug somewhere, I'm not sure in this case how to narrow it down to SourceTree vs Git. Gitflow only handles the create/merge/delete operations, not the display of branches, so it shouldn't be that. File a bug report at <http://jira.atlassian.com>.The recent date stamp on your comment is probably related to the recent overhaul of Answer's underlying framework.


author: john van strien
body: I merged (from the Assembla repository) two of my branches and now I see the visual branches that I was expecting.


Tags: branch

git-flow

graph

mac
Internal Server
Asked by Stephan Bernstorf:

Could someone provide so insight how to setup a remote repository for me to connect to an internal server at work. We currently have a server setup with our source code and I would like to use Sourcetree to manage CM.


Answers:
author: Seth
body: Not sure what CM is...

Try starting with the Git Book, [Chapter 4](http://git-scm.com/book/en/Git-on-the-Server).
Terminal button in SourceTree fails to launch a terminal
Asked by Aman Sehgal:

I just downloaded source tree on windows 7 64 bit and am trying to launch the terminal from inside the GUI but it seems like its not able to launch the terminal. A window does pop up very briefly but thats it.


Answers:
author: Maykel Gonzalez
body: - Updated SourceTree to 3.3.8  
- Updated Embedded Git  
- Disabled "Use Git Bash as default terminal" in "Tools-\>Options-\>Git"  
- Starting Terminal now launches command prompt  
- Restart SourceTree  
- Enabled "Use Git Bash as default terminal" in "Tools-\>Options-\>Git"  
- Starting Terminal git bash now works

comments: author: Maykel Gonzalez
body: This works for me too.

Thanks Alexander


author: Aman Sehgal
body: Yes. The terminal button actually works fine now that I switched back to useing embedded GIT. I was using system git earlier since I already had downloaded GIT previously.

comments: author: raculim
body: Thanks Aman Sehgal.

I disabled "Use Git Bash as default terminal" in "Tools-\>Options-\>Git" and now it's working fine.

<br />

I'm using Source Tree 2.1.2.5 on Windows 10 and was experiencing the same problem with some GIT repositories.


author: timlegrand
body: Note that SourceTree does not start the terminal when not in a repository (e.g. fresh install, no repo yet).

To enable the terminal, either:

* open an existing repository ;
* or create a new dummy repository : "Clone / New" / "Create New Repository" then click on the terminal button. You can safely delete the dummy repository after that.

comments: author: 32734319
body: Tried it -- same error. I believe that, several days ago, I installed another "git" (git for windows??) and I think it is conflicting with SourceTree's git. Is that likely? Can I reinstall SourceTree? How do I uninstall SourceTree?


author: Sveta Matchenya
body: Are there any updates on this topic?


author: Sveta Matchenya
body: Are there any updates on this topic?


author: Aman Sehgal
body: So i just checked again and figures that it is system GIT


author: Aman Sehgal
body: git 1.9.4 for windows. I think its system GIT


author: Seth
body: Are you using embedded git or system git?


Tags: terminal

windows
What exactly does each line in the graph represent?
Asked by jrood:

I work with a team of developers developing enterprise applications, and we have used source tree with Git for about half a year now. However, we still can't seem to figure out exactly what each line in the graph represents? Is each line one branch? If so, which color corresponds to which branch? Why is there no key?


Answers:
author: Seth
body: In general, each line is one branch. Keep in mind that working in a team environment will often create multiple branches with the same name (in the graph). For example, my repository's "master" is a different branch than my coworker's "master". As long as we are staying in sync, these will be displayed together, but if the two of us make commits simultaneously, someone has to merge, and the "master" branch will temporarily diverge to reflect that activity (unless the merger uses rebase, which rewrites their history to make it appear as if the branch did not diverge).

Colors are arbitrary, intended only as a visual aid when scrolling through the history. It seems that Sourcetree cycles through a fixed sequence of colors, starting with blue for the most recently touched branch.

I believe the reason this gets so confusing is because the distributed nature of Git makes a commits membership in any particular branch much more ambiguous that for a centralized system like SVN.


author: Johannes Kilian
body: Just for completion:

Look at my comment here:

<https://answers.atlassian.com/questions/310287/how-to-know-which-branch-color-correlates-with-which-branch>

I tried to explain there, that the git-log view isn't static.
> Is each line one branch? ... Why is there no key?

Yes - and no. You are able to delete branches in git - this means mainly that the branch name is deleted while the commits on the branch still remain. Within the git-log view the commits on the deleted branch are still represented on a separate line - unless the branch does not exist anymore. So each line represents an existing or (maybe) deleted branch - therefore there is no key for the lines (as the branch may be deleted).

What the gil-log view really represents is a topological view on the commits rather than a branch overview. It displays things like "*the parent of commit x is commit w* " (in case of straight development) or "c*ommit a has two children: commit b and commit c* " (in case of branching where commit b lives on branch 1 and commit c lives on branch 2) or "*commit i has two parents*" (in case of merges) ...


Tags: windows
Username/Host/Password not showing in Options/Authentication
Asked by Kalpna Patel:

I've successfully used my git repository in Kiln. The password was saved when the repo was first cloned by SourceTree.

Now I would like to delete the saved password and be prompted each time I access the repo. But I don't see an entry for the repo's Username/Host/Password in Options. Even uninstalling and reinstalling SourceTree doesn't purge the 'hidden' Username/Host/Password.

Thanks for any insight.


Answers:
author: Kalpna Patel
body: Solved, thanks to [](http://stackoverflow.com/questions/15381198/remove-credentials-from-git)<http://stackoverflow.com/questions/15381198/remove-credentials-from-git>

Fixed by removing:

    [credential] helper = !\"C:/Program Files (x86)/GitExtensions/GitCredentialWinStore/git-credential-winstore.exe\"




Tags: authentication
Having issues logging into either GitHub or Bitbucket from Sourcetree
Asked by Andy Costello:

Hi,

Using Sourcetree 1.9.4.1, MAC OS X 10.9.

Unable to log into either

GitHub (Error Msg: Login Error, Login failed for your GitHub account., The remote service said: 'Login error').

or Bitbucket (Error Msg: Login failed for your Bitbucket account., The remote service said: 'lexical error: invalid char in json text., Invalid Authorization Header').

Looking forward to using your software and services but can't !

Thanks for a swift reply.

Andy.


Answers:
author: Seth
body: There are certain special characters that will prevent authentication if they are used in the password. I don't know what those are, but if you use special characters, try changing your password.

I think someone who has this issue should file a [bug report](http://jira.atlassian.com).

comments: author: Nicklas Peistrup
body: I just experienced this issue with the character "?" - removing this from the password, fixed the login issue...