youngmon/atlassian-qna huggingface dataset:
Teams repo does not show anymore
Asked by Martin Andersson:

Hi,

Trying to access my teams repositories, but almost all of them are not there anymore....  
There is only a few of them left, how could this happen?


Answers:
author: Caroline R
body: Hi, [@Martin Andersson](/t5/user/viewprofilepage/user-id/4621334)! Welcome to the community!

Checking the Bitbucket account linked to the email you used to create this question, I can see you don't have access to other workspaces and there is no repository under this account.

In this case, could you please confirm if this is the account that should have access to those repositories that are missing? Maybe you accessed an account with a different email that doesn't have access to them.

If that's not the case, would you mind sharing the workspace/repository name masked here (you can use \*\* in the middle of the name), so I can further investigate this case? Also, do you still have access to these repositories locally? Are you able to push code to the remote repositories?

Looking forward to hearing from you.

Kind regards,  
Caroline

comments: author: Martin Andersson
body: Hi Caroline,

Thank you for your answer.

I have the repositories locally and can push to remote.

I have tried some different accounts and on this one I can see the "team" but not many of the repos.

Is it possible to send you a "private" message, then I can share more details.

Br.Martin


author: Caroline R
body: Hi, Martin!

We don't have a way to send a private message here in the community. However, even if we have the URL of the workspace where repos are missing, we won't be able to share more details with you if the request is coming from an account that has no access to said workspace and repo. We need the request to be coming from an email with access to said workspace and repo.

You mentioned that you already tried different accounts, and with one of them you were able to access that team (the workspace that owns these repos). So, could you log out from the community website and log back in with the account that has access to this team, and leave a reply in this community post?

With this information, we could potentially create a support ticket for you and further investigate these repositories.

Please let me know if you have any questions about this process.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
is SourceTree throttling network ?
Asked by jmuffat:

I am experiencing 10x faster clone speed with "Git Bash" than with SourceTree, same machine, same repo, same everything... When I look at network traffic, it all works out like if it was throttled to 384Kbps upstream and 768Kbps downstream...   

Windows 7 client. TeamForge repo.


Answers:
author: KieranA
body: Hey J?r?me,

Could you open an issue on [jira.atlassian.com](http://jira.atlassian.com)just showing your findings so our team can take a look into it? The more detailed the better, it'd be a great help for us to help track down any issue in this area.

Thanks in advance!
How to run a git command as a custom action?
Asked by Seth:

I want to set up a custom action to run a particular git command.

I've tried putting "git" in the "script target", which errors with no explanation. I've tried putting "cmd" in the script target with "/C git" in the "Parameters" and gotten a "'git' is not recognized" error.

I use SourceTree's embedded Git on Windows (8.1). I'm sure there's a simple way to do this, but I can't find any good resources.


Answers:
author: Aseem Parikh
body: Hi Seth,

Custom actions can run arbitrary scripts as well as git commands. Since you're using the embedded git executable, it would probably be best if you put that command into a .bat file and use that .bat file as your script target.

comments: author: Seth
body: The embedded Git isn't registered on my Windows %Path%, so I'm not sure I can run it from a batch file either without knowing what the path to the executable is.

It looks like the embedded Git is run inside mingw, so it may not even be possible to run via "cmd".

In other words, I know it can run arbitrary scripts and how to do that. I can't figure out the more obvious usage, which would be custom git commands.


author: Aseem Parikh
body: You can add git to your path or specify the path to git.exe in your .bat file.

You should be able to find git.exe here:

```
%USERPROFILE%\AppData\Local\Atlassian\SourceTree\git_local\bin
```


author: Aseem Parikh
body: Awesome! I'm glad you got that working


author: Seth
body: That's the path I needed. It also works to specify that full path to cmd \\C.


author: Seth
body: For anyone interested, I created a custom action to set the executable bit (for scripts stored in Git). In windows I set the script target as "cmd" and the parameters as "/C %USERPROFILE%\\AppData\\Local\\Atlassian\\SourceTree\\git_local\\bin\\git.exe update-index --chmod=+x $FILE" (omit the quotes).


author: Mike Friedrich
body: It would be nice if sourtree would add the correct git-path itself (based on its internal/external selection) in its own process before executing custom actions.That way its much easier to giy in custom actions.


author: Rajavanya Subramaniyan
body: I added an example of how to setup "git clean" using custom actions in Sourcetree  
<http://githubtraining.com/custom-actions-in-sourcetree-example-setup/>


Tags: moderators

windows
Login to Github is broken in 1.8.0.3
Asked by joeldrotleff:

After downloading the new version, trying to push or pull from any of my Github accounts repeatedly asks for my password, and never completes the operation. My colleague had the same issue - we downgraded to 1.8.0.2 and the issue was fixed.


Answers:
author: Branden
body: Just fyi... not sure if this is related, but I just installed Sourcetree 1.8.0.3 (first time user) and was unable to authenticate to GitHub using the Setup Wizard. I enter the correct GitHub username/password (and I verified that they're accurate), but it will not authenticate. It keeps complaining that I've entered the wrong credentials.   

Not a helpful comment, I know. I just wanted to let you know that you're not the only one. I'm going to try to find version 1.8.0.2 which will hopefully get past the issue, as you indicated in your post.


author: Timothy
body: Report it here <https://jira.atlassian.com>


Tags: bug
file showing in modified filter but diff window says unmodified
Asked by Phil Bergner:

I downloaded a github repo, created a project in eclipse, pushed the project contents to a server via a metadata API, did some work etc. Its possible that the metadata API process might have modified my files in some way because now in Sourcetree I'm seeing all of my repo files in the 'Show Modified' filter list. When I click on any of them that I didn't manually change the diff window says 'unmodified file'. Any idea what would cause this or how to filter these out?


Answers:
author: Aseem Parikh
body: Permission changes and whitespace changes (newlines in particular) count as modifications, but diffing will show no difference for either of these situations.

Take a look at this documentation on workarounds for whitespace changes: <http://git-scm.com/book/ch7-1.html#Formatting-and-Whitespace>

comments: author: Phil Bergner
body: Wouldn't whitespace changes show up with the Ignore Whitespace box unchecked?


author: Aseem Parikh
body: Theoretically, yes. I'm still convinced that it's a line ending problem considering the symptoms of the problem. Sourcetree is probably just inherting its behavior from your git config.

Do you see the same thing on the command line if you run 'git status'? If so, what do you see when you run 'git diff \<modified_file\>'?

What OS are you working on? Are you working with a team that uses other OSes?


author: Phil Bergner
body: when i run git status it shows them all as modified

If I do a git diff for a specific file I see : 'warning: LF will be replaced with CRLF ... the file will have its original line endings in your working directory'


author: Aseem Parikh
body: If you run 'git config --global core.autocrlf false', the warnings should go away.


author: Phil Bergner
body: thanks that seems to have done it


author: Aseem Parikh
body: Always happy to help!


author: Vasily Rassokhin
body: the link in the answer seems to be outdated. see <http://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration#Formatting-and-Whitespace>
In SourceTree, how to go back to previous commit and delete new files?
Asked by Justin Pierce:

So before I upgraded a third party plugin in my project to their newest version, I did a commit so I could reverse the changes if things went haywire. Well, things went haywire and I'd like to restore the project to the state it was at with the last commit. I tried 'Reset master to this commit' but it seems to have kept some of the new files added when I upgraded the plugin even though I selected hard (discard local changes). There's many files, so manually deleting the problem files would be tiresome (why I made sure to commit before upgrading).

Anything I can do in SourceTree?

edit: does removing files in SourceTree delete them?


Answers:
author: Aseem Parikh
body: Try the "stash" feature. Stashing (untracked files must be staged when using sourcetree, I believe) will leave you with a clean working copy up to your last commit. If you decide you want your changes back, you only need to apply the stash. If you want to discard your changes, you can just drop/delete the stash.


author: Justin Pierce
body: So I was able to browse Uncommitted Changes and delete the files that had been added. Seems to have solved my problem, but I'll still give credit for the answer if someone provides a cleaner solution.
All about "checkout" ?
Asked by Steve Kissh:

I use SourceTree with Btibucket hosting a git repo.

What does the tool bar Checkout button checkout?

When I clone, is something automatically checkedout?

After making some changes to my working copy that I don't want to keep, should I just do another checkout to get the working copy back to the state before the changes?

When should I use the Clean checkbox in the lower left corner of Checkout tab? It says (discard all changes), but isn't that what checkout does, overwrites current working copy and therfore dicarding all changes?


Answers:
author: Sumali
body: When cloning the default branch is checked out automatically which is usually master.

The main purpose of checkout is to switch a working copy between branches, if you want to remove modifications but not switch branches you might as well just use the reset button, both ways work really but pls note either way you will still have untracked files sitting around.

The "clean" checkbox makes it easier to change branches by removing all modifications first (because it actually runs a [git reset](https://www.atlassian.com/git/tutorial/undoing-changes#!reset) --hard and then the checkout). I find it misleading because there's a git command called clean that does something different to what the "clean" checkbox does.

comments: author: Steve Kissh
body: I would totally accept your answer, if I could find the grey question mark so I could click it. Is there another way to accept it?


author: Aseem Parikh
body: \[edit\] Image uploading seems to be broken. Look for a checkmark button under the voting buttons.


author: Steve Kissh
body: No checkmark button under the my voting buttons. I'm using Chrome Version 32.0.1700.72 m.
SourceTree doesn't refresh files in the working tree
Asked by Shahaf Abileah:

I've been using SourceTree on Mac for a few months and I've been really happy with it.

But recently something happened and SourceTree stopped auto-refreshing the "Files in the working tree" panel. So now if I change some code file and save it, then flip over to SourceTree, I don't see the change reflected in that panel and I'm forced to take some manual action to force-refresh it.

I tried upgrading to SourceTree 1.7 and again to 1.8. That didn't help.

I tried going to Settings - Advanced and making sure that these checkboxes are checked:

\* Automatically Refresh (if disabled you must manually refresh this repository)

\* Refresh remote status in the background (if enabled in global preferences)

That didn't help either.  
I've found that any of the following actions can serve as a "force refresh":

\* Restarting SourceTree

\* Unchecking and rechecking the checkboxes mentioned above

\* Flipping the dropdown from "Show Pending" to "Show Untracked" and back.  
Is there some other setting I'm not aware of? Is this a known bug? Is there a keyboard shortcut to force refresh the "Files in the working tree" panel?  
thanks!  
--S


Answers:
author: KieranA
body: Hey Shahaf,

For these kind of issues where SourceTree isn't performing or functioning correctly you can open a ticket on [support.atlassian.com](http://support.atlassian.com)and the support team can help you out directly. If you could do this with any detail you can think of then they'll be able to give you some one-on-one support.

Thanks in advance

comments: author: David Parks
body: Is there any movement on this issue at all? We ran into this right out of the gate and are considering abandoning bitbucket because of it. I can't imagine how such an obvious and simplistic bug can go unassigned for years on end. If there's a workaround can someone post it here? I found this question quick enough, but it seems to dead end with the JIRA ticket posted there.


author: Shahaf Abileah
body: Kieran, thanks for your help!

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


author: Shahaf Abileah
body: Kieran, thanks for your help!

Done: <https://jira.atlassian.com/browse/SRCTREE-2020>
how can I see in sourceTree committed changed which were not pushed?
Asked by Elad B:

I'm using sourceTree.

I want to see all changed I have committed but not pushed to the remote repository

how can I do this?

if not through sourceTree, how can I do this by git cmd ?


Answers:
author: Aseem Parikh
body: In SourceTree, it looks like you only need to select the commits (including the latest commit in the remote repo) in order to see the diff:

![](../../upfiles/sourcetree-diff.png)

From the command line, you can simply run 'git diff origin/master'. Assuming your remote repo is called 'origin' and your branch is 'master'


author: Mamta Chaube
body: if i dont know what the '2 ahead' or '10 ahead' stand for , how can i see detailed description?
Custom actions - sftp not supported by curl
Asked by Harold Angenent:

I'm trying to create a custom action for git-ftp. I've created a shell script that works fine when run on its own in the Terminal. However, when run by the Custom Action, it says that sftp is not supported by libcurl.

When I run curl -V in Terminal, sftp seems to be supported.

When I run curl -V in the shell script called by SourceTree, sftp is not supported.

What difference is there in running the code via Terminal or via SourceTree?

Regards,

Harold


Answers:
author: Harold Angenent
body: While I feel like an idiot asking stoopid questions about stuff I don't know too much about, I have found the answer. Apparently it worked by creating the right symlinks using Homebrew.

```
brew link curl --force
```

comments: author: Norman Abramovitz
body: Good to hear that you solved your issue.


author: Norman Abramovitz
body: I would guess your environment variables are not set up correctly such as PATH.

comments: author: Harold Angenent
body: As you may have noticed, I do not have alot of experience with this. How should my PATH variable be set up?

It seems the folder which by script is in is already included (/usr/local/bin).


author: Harold Angenent
body: I see now that the PATH variable is different when executing this script from SourceTree. Any ideas what can cause this?


author: Harold Angenent
body: I have tried adding /usr/local/bin to the PATH variable. It worked, but still got the same error and SFTP is still not supported by cURL.

Any ideas on what might cause this?


author: Norman Abramovitz
body: It is very common for programs to 'cleanup' the environment to give a consistent behavior. It is also possible for the environment variable to not be passed along. It is also probable more environmental variables that might need to be setup as well.

There is also a curl configuration file that might need some adjusting. It could be your libcurl needs to setup or referenced correctly.

I would find someone within your organization who has more experience linux with writing programs or shell scripting to help you out. This is a common issue when trying to use programs on linux.

We can play the question game here, but it would be a very slow process.


author: Harold Angenent
body: Thanks for your response, I appreciate your help. Nobody in my organization really knows about this stuff, so I'm trying to Google my way of of this.

I don't need any quick solutions but I'm trying to find the root cause so I have something to go on. Can you give me any hints on what to look for?
Disable smart quotes in commit window?
Asked by Jeremy Kay:

Is there a way to permanently disable smart quotes and smart dashes in the commit window? Some of our deploys fail because git complains about the unicode characters.

When I right-click and uncheck Substitutions \> Smart Quotes and Substitutions \> Smart Dashes it does not remember the setting.

It would be ideal to be able to turn off all spelling "correction" and any other text substitions in this window.

I'm on OS 10.9 and Sourcetree 1.7.4.1.

Thanks.


Answers:
author: Chris Novak
body: LOL, I just found this issue, and it's EIGHT YEARS OLD.

Obviously, Atlassian doesn't care about their users. Never has, never will.


author: fingolfin
body: I think SourceTree should just always disable the various "smart" substitutions in the commit dialog. The will almost never make sense, and if somebody wants to use "smart" quoties etc., well, they can still enter them manually.


author: Jeremy Kay
body: I had to turn off the setting site wide in order to prevent sourcetree from replacing quotes and dashes in the commit dialog. Ideally it could be disabled just for sourcetree, but this works for me for now.

Go to System Prefs \> Keyboard

Choose the Text tab.

Uncheck "Use smart quotes and dashes"


author: fingolfin
body: Same over here! This is \*reall\* annoying. For now I partially worked around this by changing the system wide "smart dash" settings to use the regular " and ' (so nothing happens), but this is only partially solving the problems, as it still converts -- to a dash.

I really hope the SourceTree team will fix this soon.


author: Reno Brown
body: I'm experiencing the same issue with OSX 10.8.5 and Sourcetree 1.8.0.3.

I've resorted to using the command line for my recent usage of git, as I cannot seem to turn off text substitutions permanently for SourceTree, even though I've turned them off system wide.

The text substitution settings reset as soon as I hit the "commit" button again.
Different default remote (tracking branch) for git pull and git push
Asked by Rick Jensen:

Having a different remote branch for push and pull is now supported in Git v 1.8+. It would be great if Sourcetree would surface that in the UI!

See: <http://stackoverflow.com/q/2916845/20770>


Answers:
author: KieranA
body: Hey Rick,

Sounds great! Could you file this as a feature request on [jira.atlassian.com](http://jira.atlassian.com)project SRCTREE and SRCTREEWIN for us? This way us developers can take a look and review it.

Thanks in advance!
Switching submodule to subtree...
Asked by Micah Koffron:

I'm switching from submodules to subtrees. To do this, I've created a topic branch and done the work in there. To get everything working properly, I had to delete the submodule folders entirely from disk. Once I have the subtrees set up in my branch, I can't checkout to move back and forth between my topic branch and the master branch because once I have the submodule re-established, they end up leaving their files as untracked files when trying to switch back to my subtree branch and I have to go and clean them up off of disk again. I'm wondering if this is a known issue and if there's any plans to do anything about it.


Answers:
author: KieranA
body: Hi Micah,

In events like these it's worth raising a JAC ticket so us devs can look at it. I can't say I've experienced this problem though. Are you saying when you switch branch from where your submodules were, to a branch which no longer contains your submodules, that the files from your submodule (not subtree) get left over?

Cheers

comments: author: Micah Koffron
body: Thanks for the response Kieran. I'll need a quick pointer to opening a JAC ticket (didn't find anything promising on this page or in some web searches). Yes, I'm saying what you state. It seems like in GITs view, it starts with no untracked/modified files, so it is fine with the checkout to the new branch with subtrees in place of submodules, but once it switches its view to that with subtrees, then all the submodule-related stuff appears as untracked files that would get overwritten. So, considered strictly from the end-user's perspective, I see that my working tree is clean, so I expect to be able to switch from this to any arbitrary branch.


author: KieranA
body: Hey Micah,

It's [jira.atlassian.com](http://jira.atlassian.com)to log a JAC ticket. I'd be happy to help you out from the logged issue if that's OK?

Thanks in advance


author: Micah Koffron
body: Here's a link to the issue I opened: [SRCTREE-2023 - Switching submodule to subtree requires manual interventions...](https://jira.atlassian.com/browse/SRCTREE-2023)
SourceTree for GIT
Asked by vaibhav dubey:

I have 100 member team and we want to use Source tree for GIT. So can you please tell did i need to buy license for the team or its freeware software which we can download and use it. I am not talking about 30 day trail version.

We need an full version. Please answer clearly and if possible asap.

If need to buy than what would be the cost.


Answers:
author: KieranA
body: Hey Vaibhav,

I'm one of the SourceTree developers, and I can tell you it's totally free! We only ask for registration so we know how many people are using SourceTree, that's all.

Hope that helps

comments: author: vaibhav dubey
body: **Thanks alot Kieran Senior**
Sourcetree does not show any progress of upload!
Asked by kstreicher:

Am i missing something or is there absolutely no feedback on the progress of an upload? Shouldn't there be in the case of "Show Full Output" at least the list of currently pushed files?

Yours sinercely,  
Kevin Streicher


Answers:
author: wywarren
body: bump


author: Geva Zeichner
body: <https://jira.atlassian.com/browse/SRCTREE-967>

comments: author: Nguy?n L? Tr?ng
body: 5 years and still not resolved smh


author: KieranA
body: Hey Kevin,

Yup, this is echnically possible as there's a --progress option to the push command, but I've not seen a request for this as of yet. If you'd like you can file a feature request on [jira.atlassian.com](http://jira.atlassian.com)(project SRCTREE) so we can review it from there.

Cheers

comments: author: Geva Zeichner
body: <https://jira.atlassian.com/browse/SRCTREE-967>