youngmon/atlassian-qna huggingface dataset:
Feature branches in remote not getting deleted
Asked by Isuru:

I'm having an issue with using git-flow. Not sure if this is the expected behavior so please clarify it for me.

I create an empty repo in Bitbucket and clone it to my local machine. Then I create an Xcode project (I do iOS developing) inside that repo, commit it and push it to Bitbucket.

Then I went ahead and initialzed my local repo to use git flow. I use SourceTree by the way. Then I created a new feature branch, let's call it FirstFeature. I add some files to the project and push it again. Now I have 3 branches in my remote repo; master, develop and FirstFeature.

Then I work on the project again and finish off that feature. The FirstFeature branch gets deleted and merged it with develop locally. Then I proceed to push it to Bitbucket. I thought since the local branch of FirstFeature got deleted, it would get removed when I push the new changes but apparently not. That FirstFeature branch is still there in my Bitbucket repo.

Is this expected behavior or do I need to do something extra to get these removed?

Thank you.


Answers:
author: TimP
body: Hi Isuru,

By default git flow only deletes the local branch for you. You can delete remote branches manually using the syntax:

`git push origin :branchname`

This [StackOverflow thread](http://stackoverflow.com/questions/11151623/does-git-flow-deletes-branch-on-remote-server) has a couple of other suggestions that may help.

Hope this helps!

cheers,

Tim

comments: author: Isuru
body: Hi Tim, got it. Thank you.


author: Isuru
body: I found a cool fork called git-flow-avh(<https://github.com/petervanderdoes/gitflow>) of git-flow that does this remote deletion automatically. I'm gonna use it alongside sourcetree. I also voted up for feature request(<https://jira.atlassian.com/browse/SRCTREE-1762>) for sourcetree to integrate this fork instead of the original.


author: Seth
body: In the meantime, you can also delete the remote branch by finding it in the expandable "Remotes" branch list, right-clicking, then "Delete...".


Tags: bitbucket-cloud

branch

cloud

feature

git

git-flow
I am trying to clone a repository to SourceTree and I get an error
Asked by Julia Pavlov:

Hello, I am new to SourceTree. I am trying to clone a new repository from bitbucket site, but I get an error that I don't know how to fix...

Please help me solve the following problem:

Capture.JPG  
[](https://community.atlassian.com/t5/Sourcetree-questions/I-am-trying-to-clone-a-repository-to-SourceTree-and-I-get-an/qaq-p/238239?attachment-id=4386){#link_116ade4be98df1}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/6927/1/Capture.JPG){#display_116ade4be98df1_0}


Answers:
author: Timothy
body: Are you sure that the user running SourceTree has the access to that folder or to that file?

comments: author: Julia Pavlov
body: Yes.. For some reason that file dosen't exist. I solved the problem by signing in with a different user on my computer.


author: Nagy Orsolya
body: One of the nicest features of any Distributed SCM, Git included, is that it's distributed. This means that instead of doing a "checkout" of the current tip of the source code, you do a "clone" of the entire repository,,-Git apart from other tools is that it's possible to quickly stage some of your files and commit them without committing all of the other modified files in your working directory or having to list them on the command line during the commit,,"-
sourcetree hangs in log/history and memory skyrockets (1.6.10.0)
Asked by d3bgger:

Just migrated my code from svn to git.

Committed and pushed the latest svn revision (clean start in git). It's around 2k files with a total size of about 20mb.

After push, i tried to see the log / history tab, but sourcetree hangs, and the memory skyrockets (i kill it in 2gb).

Same happens with every repository i migrated.

I'm using the latest version 1.6.10.0

p.s i tried to file a bug in sourcetree support but the page doesn't work for me


Answers:
author: d3bgger
body: this is only happening in versions

1.6.11

1.6.10

1.6.9

Downgraded to 1.6.8 and the issue is gone. So i guess it has something to do with the new tree view!

comments: author: Ian Darroch
body: We are having the same problem too, with v1.6.11. The downgrade to 1.6.8 also fixed the problem here. Thanks.


author: bravecobra
body: Apparently it got fixed in 1.6.13: <https://jira.atlassian.com/browse/SRCTREEWIN-2572>


author: bravecobra
body: Atlassian, can we have a more permanent solution please?


author: tobias larsen
body: Same problem here. Anyone know where I can download 1.6.8?

EDIT : Found it <http://downloads.atlassian.com/software/sourcetree/windows/SourceTreeSetup_1.6.8.exe>


author: Giovanni Van Geel
body: I seem to have the same problem. I downgraded to 1.6.8 as well and indeed the problem is gone. Thx for the tip.


author: Caleb Evans
body: I've experienced the same issue when doing an initial commit of 2k-3k files. I have to kill source tree when the memory usage hits around 4gb. As a workaround, With SourceTree closed, I create a change in a single file for this repository. On opening SourceTree the initial view shows the uncommitted changes (only 1 file) and the program is usable again. I dare not click on that initial commit again though.


author: d3bgger
body: i just tried to leave it without killing it to see the outcome:

After about 1-2 min the memory decreases, and the view is working.

Then i created a branch... and the waiting / memory / hang started all over again. After 1 min the view started working and te memory decreased.

CPU for the sourcetree process is at a constant 20% while hanging
bitbucket connexion rejected (but not with command prompt)
Asked by Laurent Debien:

Hello,

I created an ssh key using this bitbucket guide : <https://confluence.atlassian.com/display/BITBUCKET/Set+up+SSH+for+Git>

Then, I commited and pushed my .gitignore just after this configuration. It worked very well. Today i start my computer, created some folders and tried to push them but SourceTree tells me that SSH connection failed because my connection was rejected. It ask me to add my ssh key but my key is still there (I checked in the options). There is only one thing that is strange : at the launch of SourceTree, it id not ask me my password.

Very well, I tried to pull/commit/push with the terminal available in SourceTree and it worked. I do not understand anything about this problem but I cannot really use SourceTree in this case.

I hope you'll be able to help me. Thank you !


Answers:
author: Bal?zs Szakm?ry
body: Is your SSH agent running? (cmd might use a different one/start it by itself.) Tools\\Launch SSH Agent is the place to start it.


Tags: bitbucket-cloud

cloud
SourceTree - Command Line Git
Asked by sonnysavage:

I am using SourceTree (1.6.10.0), and I absolutely love it. The thing that puzzles me is the version of Git that is being used. The command prompt says

\> Welcome to Git (version 1.8.4-preview20130916)

git-scm.com shows 1.9.4 as being the latest release for Windows.

My question is, why is a release that's over a year old being used? Was there a change in 1.9 that is incompatible? Performance reason?


Answers:
author: rahuldanwade
body: Hi Edward

The version of Git installed on machines that interact with Stash must be compatible with the version of Git installed for use by the Stash server.

Please go through following links which will brief your understanding.

* ![cross](/html/@77EA5FC57E1DC12A33F294DD6D952DFD/images/emoticons/cross.png "cross") Git 1.7.1 [is not supported.](https://confluence.atlassian.com/display/STASHKB/Git+1.7.1+is+Not+Supported+by+Stash)
* :warning: Git 1.8.3.x has some performance regressions which may cause problems in Stash with large repositories
* ![cross](/html/@77EA5FC57E1DC12A33F294DD6D952DFD/images/emoticons/cross.png "cross") 1.8.4.3 is not supported due to a critical bug in how symbolic refs are handled which breaks pushing and pulling for repositories with pull requests. ([Details](http://git.661346.n2.nabble.com/Symbolic-refs-break-ref-advertisement-on-1-8-4-3-td7599457.html))  
  [:bug:STASH-4101](https://jira.atlassian.com/browse/STASH-4101?src=confmacro) - Clone and fetch fail with "protocol error: impossibly long line" Closed
* ![cross](/html/@77EA5FC57E1DC12A33F294DD6D952DFD/images/emoticons/cross.png "cross") 2.0.2 and 2.0.3 are not supported due to a critical bug in `git diff-tree` which breaks Stash's commit page. ([Details](http://git.661346.n2.nabble.com/git-diff-tree-commit-detail-bug-in-2-0-2-and-2-0-3-tp7615867.html))  
  [:bug:STASH-5052](https://jira.atlassian.com/browse/STASH-5052?src=confmacro) - Commit messages are wrong when using Git 2.0.2 and 2.0.3 Closed
* **![cross](/html/@77EA5FC57E1DC12A33F294DD6D952DFD/images/emoticons/cross.png "cross") Cygwin** : Cygwin Git *is not supported* for use on Windows servers, regardless of version.
* :warning: XenServer can cause msysgit to crash when XenServer Tools is installed. ([Details](https://github.com/msysgit/git/issues/248))

comments: author: sonnysavage
body: @Rahul Danwade - Thank you! That's exactly the type of answer I was looking for.


author: Timothy
body: Not sure why but I am sure you know that you can install the latest Git on your client and use the system Git instead of the embedded Git.

comments: author: Bal?zs Szakm?ry
body: You can switch from embedded to system git in Tools\\Options\\Git
SourceTree Problem -- BitBucket account showing, but associated repositories are not.
Asked by Houston Callaway:

Just installed Source Tree, and linked with my BitBucket. It shows the BitBucket account with the appropriate username under "remote", but does not show any of my repositories under that list, despite multiple refreshes, quit / re-opens.


Answers:
author: Bal?zs Szakm?ry
body: View/Show Hosted Repositories is the place where you should be able to see all your repos.

comments: author: Houston Callaway
body: <https://www.dropbox.com/s/l4dc52lwdx4xocr/Screenshot%202014-11-17%2017.11.14.png?dl=0>This is what is happening. I don't see "View/Show Hosted Repositories" that you mention.I should add that these are not my personal repos, just repos for my company that I have access to. Would that cause an issue syncing with SourceTree?


author: Bal?zs Szakm?ry
body: As far as I can see from your screenshot, you are using the Mac version and you are probably looking at the right place. (My answer is valid on Windows only apparently.)


author: Houston Callaway
body: You would be correct in both cases, it seems.


Tags: bitbucket-cloud

cloud
Can I run git diff in SourceTree?
Asked by larryq:

I love SourceTree, it's a great tool. I did have a question regarding the git diff command however? Is it possible to compare two branches from within SourceTree?

I see that if I right click on a branch a 'diff against current' context option appears. However, when I select it I'm not sure if anything happens? I don't see anything at least-- am I supposed to look in a particular section of the screen to see it?


Answers:
author: TimP
body: Hi Larry,

After you've selected "Diff against current" the following area will show the files that are different (and you can click on each file to see the line diffs):

54655193c38aa5080d0c94a6.png

cheers,

Tim  
[](https://community.atlassian.com/t5/Sourcetree-questions/Can-I-run-git-diff-in-SourceTree/qaq-p/381071?attachment-id=11748){#link_11749aa627c73c}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/39597/1/54655193c38aa5080d0c94a6.png){#display_11749aa627c73c_0}


author: larryq
body: Thanks Tim, much appreciated.


Tags: git
Can't create local repo or clone frome remote or open existing local
Asked by kerstvo:

Hi! When I create new repo awesome SourceTree just freeze.

This is strange because recently all works fine.

I try to reinstall or install old version - doesn't help.

Screenshot 2014-11-13 23.08.53.png

But seems that created repo is OK.

Screenshot 2014-11-13 23.42.36.png  
[](https://community.atlassian.com/t5/Sourcetree-questions/Can-t-create-local-repo-or-clone-frome-remote-or-open-existing/qaq-p/124931?attachment-id=3908){#link_11749ab064ea02}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/3702/1/Screenshot%202014-11-13%2023.08.53.png){#display_11749ab064ea02_0}  
[](https://community.atlassian.com/t5/Sourcetree-questions/Can-t-create-local-repo-or-clone-frome-remote-or-open-existing/qaq-p/124931?attachment-id=3909){#link_11749ab064ea02_0}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/3702/2/Screenshot%202014-11-13%2023.42.36.png){#display_11749ab064ea02_2}


Answers:
author: Bal?zs Szakm?ry
body: You can report this as a bug [here](https://jira.atlassian.com/browse/SRCTREE).


author: Nagy Orsolya
body: So here is the thing, I tried to clone a repository from github (for example: <https://github.com/my-repository.git>) using SourceTree in Windows 7, but the following was displayed,,.
"This is not a valid source path/URL" in SourceTree (Windows 7) when cloning repository from Github
Asked by EnriqueL:

I did an extensive search about this, but I wasn't able to find an answer. I am posting it here just in case someone could help. So here is the thing, I tried to clone a repository from github (for example: *https://github.com/my-account/my-repository.git*) using SourceTree in Windows 7, but the following was displayed:

1) This is not a valid source path / URL, so I click on Details...

2) It displays:

**warning: github.com certificate with fingerprint xx:xx:xx:xx:xx... not verified (check hostfingerprints or web.cacerts config setting) abort:HTTP Error 406: Not Acceptable.**

I found many similar issues related to clones using mercurial, from bitbucket or other platforms...but wasn't able to find an exact one using github as the repository service.

More details:

-The clone command in command line with Git worked well, and the repository was cloned successfully in a directory that I chose.

-When I tried to add it into SourceTree, it also didn?t work, displaying: **This is not a valid working copy path.**


Answers:
author: EnriqueL
body: Ok, a friend of mine helped me to solve the issue. It seems that "fingerprint" is something related to Mercurial, and that is how he got to an answer. I only had enabled Mercurial support in SourceTree. In order to solve it, I clicked on Tools-\>Options-\>Git and then enabled Git on SourceTree!


author: Seth
body: Try to SSH to github using the SourceTree terminal. It should ask you if you want to trust the fingerprint. After that you should be able to clone.

comments: author: EnriqueL
body: Thanks for the quick answer Seth. I think I tried that before already and didn't work. I would like to test if cloning remotely works fine now. I think it does, but my repository is too big to clone it again using the Clone Repository option (I have in on local already, it took like 20 minutes to clone it through the command line). I am sure this could help someone in the same situation though. Thanks.


Tags: git

github

windows
Is Stage/Discard hunk feature removed in source tree version 1.6.10?
Asked by jagrut sachdev:

In the latest version of Source tree 1.6.10, I do not see Stage/Discard hunk button anymore. Is it removed/disabled?


Answers:
author: Seth
body: Duplicate: [Where'd the "Discard Hunk" button go??](https://answers.atlassian.com/questions/10406393)
sourcetree login fail - github
Asked by garyalway:

After installing source tree I tried to login to github but made a typo in the password

Now it seems impossible to correct this. I've tried:

1. click on new repo -\> clone from url -\> click on "create remote account" - nothing happens other than dialog closes
2. preferences -\> none of the tabs have anything useful in correcting my github credentials
3. uninstall then reinstall -\> nothing, still get "login failed" error

Please assist


Answers:
author: Mike Graham
body: My login credentials stopped working.

I was able to fix it by going into the "Clone / New" area and retrieving my list of repos - at this point it said the login failed and i was able to edit the account and change the credentials and reapply.

I don't think the credentials actually changed.


author: Bal?zs Szakm?ry
body: For the record: Repository\\Repository settings.


author: garyalway
body: Please ignore, I found the answer in the very un-obvious place where it lives!!
SourceTree often crashed at commit & branch change
Asked by Colibri-Interactive:

Hello,

my SourceTree keeps crashing in 70% of the times when I change a branch, commit or push something.

I always have to reopen ST and check if the files have been committed or pushed correctly and branches did not always change to the one I wanted. So I have to do it again, and ST sometimes crashes again.

The "Log file" that the Crashreporter shows can be found here: <http://colibri-interactive.com/downloads/sourcetree/sourcetree-crash-report.txt>

Unfortunately I was not allowed to past t as it contains "blacklisted words"...

[](https://community.atlassian.com/t5/Sourcetree-questions/SourceTree-often-crashed-at-commit-branch-change/qaq-p/42173?attachment-id=3476){#link_116adeeb2761b2}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/1230/1/Capture.PNG){#display_116adeeb2761b2_0}


Answers:
author: Gavan Singh
body: Also experiencing this issue (for several weeks) on Windows 10 Pro (1607). All my repos are on Github. It will rarely commit without crashing. This also sometimes happens on a push.


author: Taurian
body: I can confirm this as well. I try to commit and crash. I'm also getting "questions marks" instead of checkboxes when selecting which files to commit. Repairing/Reinstalling SourceTree does not work.

Capture.PNG


author: Chris
body: I too am experiencing this issue


author: Hrp
body: 2019, same


author: serviceit
body: Same for me :

Windows 10 Pro

SourceTree ; 1.9.6.2


author: countzappula
body: Having exact same problem on Win 10 - have tried embedded and system GIT but neither works. Blew away preferences and even reinstalled, still crashed on commits. Push works fine.


author: Steve Clarisse
body: I can confirm this happen for me as well. Version 1.9.6. Windows 7 Ultimate N 64 bits.  
Can anyone help??


author: Strahinja Lazetic
body: I encountered the crash every time I try to commit anything. SourceTree 1.9.6.1, Windows 8.1 Enterprise 64bit. Can we get some estimate for update fix for this?


author: Vitali Liakhavets
body: I have two Windows 10 Pro 64bit computers with SourceTree 1.9.5.0. Both copies of SourceTree crash at every commit. Looks like it does commit though, but I have to restart and check every time. I am waiting for next release of SourceTree, hoping it will work for me.


author: Stefanos Anastasiou
body: I can confirm. Constant crashes when I try to commit anything. I have to check with normal git if commit went through. Totally unreliable state.
Is it possible to open a file log in SourceTree with the the command tools?
Asked by xgecko:

I'd like to be able to open a log of a file in SourceTree from the command line. Something like: \`stree --log /path/to/my/file\`

Is this currently possible? If not, is it something that may be added in the future?


Answers:
author: Bal?zs Szakm?ry
body: You have these options:

* Use the built-in log view
* Use the git command from the command line
* You can perhaps do what you want by creating a custom action for it in Tools\\Options\\Custom Actions.


author: Seth
body: Ah, you want to launch the sourcetree ui for a file's log view from the command line. Got it.


author: xgecko
body: Because I want to view the file change log in SourceTree.


author: Seth
body: Why not just use the git commands?


Tags: bitbucket-server
How can I limit SourceTree to one project in my company's stash?
Asked by sean256 NA:

I singed into our company's stash in SourceTree and the remote tab shows THOUSANDS of repos. Is there a way I can limit it to one project? It takes forever to load and refresh.

For example the stash URL is <https://git.company.net,> can I limit it to <https://git.company.net/projects/projectName> ?


Answers:
author: Timothy
body: I am pretty sure that there is no way to block that as your credentials have access to those repos.


Tags: bitbucket-server
Stop getting updates from other branches in same repo
Asked by Dheeraj Joshi:

Hi,  

I'm working on mercurial repository and I've several branches. Let's say every person work on different brach like A work on Branch_A, B on Branch_B. Likewise, I work on Branch_Z.   
I need not want to get updates from other branches in source tree and just want to get my own active branch updates or may be default branch which I might want to merge it later.  

I tried a lot but I couldn't any solution in SourceTree. Could anyone help me out, would be really great.

Thanks   
Dheeraj


Answers:
author: Dheeraj Joshi
body: Updates as in all the changes in terms of pull request.I cloned the repo, but I just need to get changes of belonging to my current branch (working branch). Hope I am clear this time.


author: Seth
body: I'm not sure what updates you are currently getting. You shouldn't be actually getting updates for any branch other than the one you have checked out.
Where'd the "Discard Hunk" button go??
Asked by Chris Delaney:

In Sourcetree, when I'm viewing my working copy changes and viewing the changes for individual files, there has always been a "Discard Hunk" button (and I believe also a "Stage Hunk" button) available for every hunk in a changed file. After updating today, that button is gone.


Answers:
author: Bhushan Nagaraj
body: Ah, known bug. Fixed in 1.6.11.

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


author: Igor Babichev
body: This seems to be broken again in 1.6.19, and works in 1.6.18

comments: author: alex kuskov
body: duplicate <https://answers.atlassian.com/questions/24283835/stage-lines-hunk-are-gone>


author: John Gietzen
body: This was broken in 1.6.19 and is fixed again in 1.6.20.


author: Ricardo Salcedo
body: I just upgraded to Windows SourceTree version 1.6.10.0 and I am missing the stage/discard hunk/lines buttons on the diff view as well. That blog post shows the buttons where they used to be, but they ain't there no more.

HunkButtonsMissing.png  
[](https://community.atlassian.com/t5/Sourcetree-questions/Where-d-the-quot-Discard-Hunk-quot-button-go/qaq-p/393035?attachment-id=3647){#link_116adf63c3bd51}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/11708/1/HunkButtonsMissing.png){#display_116adf63c3bd51_0}


author: Bhushan Nagaraj
body: Known bug affects version 1.6.10 and fixed in 1.6.11

<https://jira.atlassian.com/browse/SRCTREEWIN-2526>
How to push tag to remote?
Asked by Chim Kan:

Hi, the new sourcetree interface doesn't show how to push tags to remote, where do I do that?


Answers:
author: Bal?zs Szakm?ry
body: On Windows, you can easily push the tag either right away when you create it or by right-clicking on it in the tag list on the left (in the grey part, between branches and remotes)


author: Seth
body: Since your question is interface specific, Windows or Mac?
Refreshing submodule state without restarting SourceTree?
Asked by Dmitry Denisov:

How do I do that? SourceTree is very slow on that, I requires something like 5 mins for it to detect that I pushed some changes in submodule! That is especially annoying, when this was made on one computer directly inside of a submodule, and both repos (main and submodule) are bookmarked in SourceTree.


Answers:
author: Bal?zs Szakm?ry
body: Press F5 to refresh the view, this should refresh the submodule info as well.
changing password
Asked by Mike Zyracki:


Answers:
author: Paula Silveira
body: Hi Mike,  

You can try the steps below  
1. Open the **Hosted Repositories** window by clicking View \> Show Hosted Repositories or Command + Shift + H.
2. Click **Edit Accounts**
3. Double-click on your GitHub account
4. Click **Set Password**

The solution is available on <https://answers.atlassian.com/questions/219115>, you can check the link for further information.

Hope this works for you.