youngmon/atlassian-qna huggingface dataset:
Adding a remote repository
Asked by theewook:

Hi,

I'm trying to add a new remote repository but it doesn't seem to work.

Here is my situation:  
I'm connected from home and want to access to the remote git repository through a VPN. The git server is hosted on a windows server. I have access to my compagny network (remotely through a VPN) and I'm able to browse the git server's folders from home with my Mac.  
I have an empty folder where I would like to pull the source code from the remote repository.

So in SourceTree, I click Repository in the menu bar and repository settings. Add my new repository, which is 192.168.0.125/pmsrepos/git. Then in the left sidebar, I do a right click on my remote repository I just added and choose Pull. A new window appears and ask me to choose a remote branch to pull. The problem is the list is empty because i think it cannot access to the remote repository.

Can you tell me if it's the correct way to get the sourcecode from a remote repository? and why I cannot connect to my remote repository?

Thanks a lot for your help

Manuel


Answers:
author: theewook
body: Problem Solved!

Because the git server hasn't the http protocol available, so I couldn't access via [http://192.168.0.125](http://192.168.0.125.). What I did is :

- Create a mouted point (volume) with the command smb://192.168.0.125/repos/git

- Clone via this volume (git clone /Volume/repos/git)

After that everything is allright ;)


author: theewook
body: Nobody? What am I suppose to write in the path:

- //192.168.0.125/pmsrepos/git

- 192.168.0.125/pmsrepos/git

- 192.168.0.125:pmsrepos/git

- etc...

Please help me, I'm sure it's just a silly issue.


author: C. Faysal
body: not sure if i understand your description correctly.

i am wondering where that IP 192.168.0.125 is coming from. i hope it is not the "remote" IP cause it is definitly a private net thats inside your home LAN.

that would explain why there is no content until you set up a local repository with content. that has nothing to do with your remote repository you're aiming at

comments: author: theewook
body: The Ip 192.168.0.125 is the remote ip address, where the git repository is hosted. Moreover I setted up a local repository (empty for now) and I would like to pull the source code fron the remote git repository. About the VPN connection, yes I am able to access to the host via the Finder but not via SourceTree.

I am not quite sure what to enter as URL, I try 192.168.0.125/pmsrepos/git or git://192.168.0.125/pmsrepos/git but it doesn't work.

What I would like to do it just to retreive in a folder on my mac the source code from the git repository through a VPN. The VPN works perfectly, just the connection to the git server is an issue.


author: C. Faysal
body: when you say VPN you should be able to access the remote host directly cause all traffic is being send though this tunnel.


author: stevestreeting
body: You should be able to clone via an IP (as in <https://192.168.0.125/blah> or git://192.168.0.125/blah) so long as your VPN setup allows all traffic. You can't just add an existing working folder this way though.
Mac App Store version is outdated
Asked by Michal Golebiowski:

Why the Mac App Store version is still at version 1.5.6? Is there any problem with review from Apple? I'm asking because release notes say version 1.5.7 fixed one bug existing only in this version and - oh, irony - it was made available only as a standalone version so far...


Answers:
author: KieranA
body: Hey there,

Apple have now stopped allowing us to publish to the Mac App Store due to the sandboxing requirements on apps in the App Store. We'll now be offering only the direct download from our website which means updates will be released quicker in the future (<http://sourcetreeapp.com/>)

Cheers

comments: author: KieranA
body: Hopefully we can change the MAS description so people will know we no longer publish there. Cheers!


author: Michal Golebiowski
body: Thanks for info! You should probably remove the Mac App Store link from your site (it's quite visible) and delete the application from the Mac App Store to avoid the confusion...


author: Michal Golebiowski
body: Yes, but I'd still advise to at least remove the link to Mac App Store from your main site.


author: ConradR
body: You can download it here:

<http://www.sourcetreeapp.com/>

There are some issues with sandboxing:

<http://blog.sourcetreeapp.com/2012/06/29/mac-app-store-sandboxing-update/>

comments: author: Michal Golebiowski
body: +1'd for the blog link, thanks!
How to use SourceTree?
Asked by hurui18:

I want to you give me a user guide manual, I come from China, Thanks!


Answers:
author: AhmadDanial
body: Hey there, Hu Rui.

Can you please check whether the following might be able to shed some light on this:

[https://answers.atlassian.com/questions/37611/getting-started-with-sourcetree](/questions/37611/getting-started-with-sourcetree)

Hope it helps!

Warm regards,

Danial

comments: author: hurui18
body: Thank You Very Much!!

But your answer can't resolve my question,i want a manual of the SourceTree for example a file of PDF etc.


author: hurui18
body: The PDF File of the content in SouceTree Help ,thanks!


Tags: getting-started
Can't download SourceTree
Asked by Jason Habbley:

When I try to download the SourceTree app (<http://sourcetreeapp.com/>) it redirects me to the following link

<http://downloads.atlassian.com/software/sourcetree/SourceTree_1.5.7.1.dmg>

I get a 404 message (file not found).

Is it typo'd or is that version missing?


Answers:
author: stevestreeting
body: Sorry, we had some server outages last night which took down the downloads server, please try again, it's working fine here now.
Does sourcetree support doing an external diff at the folder level (git difftool --dir-diff)
Asked by David Rees:

Is there way to get sourcetree to launch a folder-level external diff between commits? Essentially a "git difftool --dir-diff"?

Thanks,

dave


Answers:
author: Jose Alberto Briseno Limon
body: Are there any updates about this topic? Isn't it still possible to do this using Source Tree?


author: stevestreeting
body: You can multi-select files or use the tree view in the File Status tab and use external diff on that, it will essentially open for all files.

comments: author: David Rees
body: Instead of having of unassociated file pairs pushed one at a time to a file diff tool, I'm looking for two folder trees being created and pushed to a folder-level diff tool. So I can see both the hierarchy and also do more top-down diffing. That is what the new dir-diff does (info below).

For SourceTree I am looking for the ability to select two commits and run git difftool ---dir-diff on their SHAs. And of course be able to run it with --cached as well.

Since the diff tab only supports file arguments I can't update it there. But now that I think about it, perhaps I can get it working using Custom Actions. I just noticed in that pane that $SHA actually is for commit(s). Hmmm.

<http://git-scm.com/docs/git-difftool.html>

<http://article.gmane.org/gmane.linux.kernel/1307164>"git difftool learned the "--dir-diff" option to spawn external diff tools that can compare two directory hierarchies at a time after populating two temporary directories, instead of running an instance of the external tool once per a file pair."


author: nkavian
body: I would also love to see this happen. Now that Beyond Compare 4 is available on the Mac, it looks silly when it's not able to compare at the folder level.<http://www.scootersoftware.com/images/FolderCompare.png><http://www.scootersoftware.com/images/TextCompare.png>


Tags: git
SourceTree authorization for remote Destination Path?
Asked by kps1ny:

Hello,

On a Mac, we can use the "Connect to Server" dialog to mount a remote host as a local drive, so that it can be selected as the Destination Path in SourceTree when cloning a repo.

SourceTree accepts the locally mounted drive initially, but when trying to move the files it displays "http authorization required" and then stops.

How can we send along a username / password in SourceTree to allow the cloning to happen on the remote server?

-Ken


Answers:
author: KieranA
body: Hi Ken,

As with your other question, we don't really support a repo which is on a remote drive. We wouldn't expect an HTTP message over NFS/SMB - but this kind of set up is generally problematic. Whilst it does work, using NFS/SMB for this is unreliable. It would be better to try an alternative solution.

Cheers


Tags: authority
SourceTree direct to remote host server?
Asked by kps1ny:

Hello,  

We would like to use SourceTree directly with a remote host, such that updates in Bitbucket can be pulled directly to the host rather than having to first mount the host as a local drive.

In SourceTree, can the Destination Path be a remote server, or must it always be a local drive?

Can this be done? (We could find no related details in the docs or support pages.) At the moment, we have to mount the remote site locally as an intermediary step and work with it as though it is a locally mounted drive when pulling updates from Bitbucket.

-Ken


Answers:
author: KieranA
body: Hi Ken,

This one has already been discussed on [SourceTree Support here](https://support.atlassian.com/browse/STSP-361). To summarise, as Steve says in the issue "it's very slow (compared to local, and git/hg are known for their speed) and prone to issues, such as disconnection corrupting repositories". So unfortunately we won't be supporting it for the reasons described in the linked issue.

Cheers

comments: author: kps1ny
body: Thanks for the response.

Trying to go to that link gets this result (I did make an account on that site):

Permission Violation  
It seems that you have tried to perform an operation which you are not permitted to perform.

If you think this message is wrong, please contact your JIRA administrators.

<br />


Tags: host

link

remote
Is there a way to search the working tree changes?
Asked by David Rees:

Is there a way to search the working tree changes? Sort of like "git diff-index --cached -S\<SEARCH STRING\> --name-only HEAD"?

It seems the current search just searches the filenames.

Optimally I would like to not just search the index also (like the example does above I think), but the whole working copy.


Answers:
author: stevestreeting
body: Sorry, only filtering by filename is currently supported.

comments: author: David Rees
body: Ok, I went ahead and added a feature request to track the idea - [https://jira.atlassian.com/browse/SRCTREE-1383](https://jira.atlassian.com/browse/SRCTREE-1383.). Thanks.
Please make the "commit merged changes immediately" checkbox sticky
Asked by Pascal Pfiffner:

I **never** want SourceTree to auto-commit merges when I pull something, so every time I click pull I have to uncheck that box. Would it be possible to make that box selection stick to the last selection I made? No need for a setting for that, just make it remember whether I turned it on or off last time.


Answers:
author: KieranA
body: Hey there,

I've logged this one in JIRA for you. You can track it here: <https://jira.atlassian.com/browse/SRCTREE-1384>

Many thanks

comments: author: Alex Rootes
body: Hi Guys, can we also have this change in SourceTree for Windows?

Thanks.


author: stevestreeting
body: Sure, we'll sync up with this in the next Windows update.


author: stevestreeting
body: Yes, please see <http://blog.sourcetreeapp.com/2013/05/07/sourcetree-for-mac-1-6/> - you can download the latest version direct from our website.

comments: author: Pascal Pfiffner
body: Oh wow, great, thanks for pointing out! Maybe adding that link to the App Store description will help you get more users to upgrade, I only checked there, not on your website. :)

Thanks!


author: stevestreeting
body: Sadly Apple forbids us from doing this in the App Store, but we're working on ways to make more people aware :)


author: Pascal Pfiffner
body: Oh, only now I see that this has been fixed in version 1.6 (Mac) long ago! But the AppStore still says 1.5.6 is the latest, it seems it has been discontinued?
Do you have any command line tools?
Asked by Alexandr Subbotin:

Do you have any command line tools? I can open directory in SourceTree by "open ./ -a SourceTree", but can I provide branch/commit as argument? Can I open file editing history by command line or file blame?


Answers:
author: stevestreeting
body: Yes, if you're using the version direct from [sourcetreeapp.com](http://sourcetreeapp.com) you can install them using the menu, under SourceTree \> Install Command Line Tools. You can then use 'stree' to open a folder SourceTree (it works a little better than open -a because it will find the repo in parent folders automatically). If you're using the Mac App Store version there's a separate download available to support that, but we strongly recommend you just switch to the direct version since MAS [won't be getting any more updates](http://blog.sourcetreeapp.com/2012/06/29/mac-app-store-sandboxing-update/) after 1.5.6.

You can't supply any other arguments right now.
I wish I could drag a folder into the SourceTree icon instead of having to use the file menu
Asked by James Sullivan:

On mac:

I want to drag a folder from Finder onto the SourceTree icon to have it open that folder.

Also, I want to be able to use a command line shortcut.

Backgound:

As a user that normally uses git from the shell, sometimes my git folder gits into a mess where I have a lot of branches, or I'm hunting for that particular commit, or something that SourceTree excells at, and I would like to quickly open SourceTree from the shell via command (like \`sourcetree .\`) or be able to drag the filder folder onto the SourceTree icon in my doc so I can skip having to add the folder to the bookmarks or have to use the file menu to find the folder.


Answers:
author: stevestreeting
body: You can do both of these things right now, but you need to be using the direct version from our website at <http://sourcetreeapp.com> .

Unfortunately the drag-to-icon feature was broken by a bug specific to the Mac App Store version which we didn't realise for a while, and Apple have now [stopped accepting updates](http://blog.sourcetreeapp.com/2012/06/29/mac-app-store-sandboxing-update/) for SourceTree in MAS (after 1.5.6). The command line tool installer is not allowed in the Mac App Store version either - in the direct version you can click the menu option SourceTree \> Install Command Line Tools.

comments: author: James Sullivan
body: Going back to the version direct from your website has these features. Thanks!


author: KieranA
body: Hi James,

(First read what Steve said above, too)

You can drag anything onto the SourceTree icon and it should offer the option to create a bookmark. If it is not doing this then the option to 'Offer to create bookmarks for newly opened repositories' on the 'General' tab (at the bottom) of your SourceTree preferences is disabled.

As for opening SourceTree from the command line with a folder as a parameter, you can already do this. Just enter the following command:

```
open -a SourceTree path_to_my_folder
```

If the folder you've specified isn't an existing repository in SourceTree then it will offer you the option to create it as a bookmark.

(EDIT: As Steve says, better to use 'stree' rather than 'open' command as it works differently)

Cheers
Does Sourcetree works with devzing?
Asked by Jose Builes:

Hi

I have an svn repository at devzing, and i would like to manage it using sourcetree is there any way that this will work out?

Thanks


Answers:
author: stevestreeting
body: You can checkout svn repos in SourceTree, but locally they will be either git or Mercurial (your choice), via bridging components called git-svn and hgsubversion. This will allow you to interoperate with Subversion, but there are some limitations. I recommend you read the 'Subversion Interoperability' section in the help (Help \> SourceTree Help from the menu).
How can I fix the error: fatal: could not read Username for 'https://github.com': Device not configured
Asked by Harald Maier:

HI, does anybody know how to fix this error:

```
fatal: could not read Username for 'https://github.com': Device not configured
```

...during merge:

```
Errors during mergeSwitched to branch 'master'Switched to branch 'develop'fatal: could not read Username for 'https://github.com': Device not configuredCould not push to develop from origin.
```


Answers:
author: Ronald DiFrango
body: I'm seeing something similar and have yet to find a resolution with the URL removed as its an internal private GitHub instance:

```
git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v --tags origin refs/heads/development:refs/heads/development refs/heads/master:refs/heads/master?Pushing to https://&lt;my URL&gt;/&lt;REPO&gt;.giterror: git-credential-sourcetree died of signal 5fatal: could not read Username for 'https://&lt;my URL&gt;': Device not configuredCompleted with errors, see above
```

I'm on OS X Yosemite with the git version:

```
git version 2.3.2 (Apple Git-55)
```


author: stevestreeting
body: He's using HTTPS so SSH keys aren't related.

I haven't seen this but I've Googled some reports of this when installing your own system git and using the 'credential-osxkeychain' extension to get the command-line git to use OSX's keychain to log in over HTTPS links. You don't need that extension to work with SourceTree, it provides its own integration with the keychain, so if you've done this it would be worth disabling it to see if that helps.


author: KieranA
body: Just as a quick, have you set your public/private keys up correctly?


Tags: github
sourcetree: is it possible to see git branch name in the commit dialog?
Asked by Alexander Belchenko:

I'm trying to find where git branch name is shown in commit dialog but with no luck. I'd like to see branch name so I can quick check that I commit in the right branch of my project. Usually I resize commit dialog window so it completelly overlaps the main window and therefore I don't see branches list. Maybe I just miss specific Preferences option or should I file a feature request?


Answers:
author: KieranA
body: Hi Alexander,

This is [already scheduled](https://jira.atlassian.com/browse/SRCTREE-1321). Unfortunately this will only work in Mercurial though as Git has no concept of a new branch indicator.

Cheers!

comments: author: KieranA
body: The branch you're committing to will be displayed in the commit dialog in the next version of SourceTree, but only for Mercurial (as per my linked JIRA issue).


author: Alexander Belchenko
body: I'm not quite understand you. What do you mean by "concept of a new branch indicator"? As I can see in the current version of SourceTree there is branches list at left side of main window where the current branch displayed in bold. I'd only like to see a name for my current branch (that one displayed in bold) in commit dialog. Thank you.


Tags: git
Pull all submodules automatically in SourceTree app?
Asked by badlydrawnrob:

I've setup a repository with submodules to pull a load of themes down for Espresso app --- I obviously don't want to do anything with these, just keep them up to date. It seems an easier way than creating a local repository for each, but is there an easy way to pull down the latest versions of each without having to do this manually?


Answers:
author: KieranA
body: Unfortunately there's not, you'll have to open each submodule pull the changes and then commit those to your primary repository. When you pull a submodule you change the commit that the parent is tracking so you'll have to do this. If you're often updating/committing your submodules you're better off having separate repositories.

Hope that helps

comments: author: badlydrawnrob
body: That's a shame, It seems it's possible via command line:

<http://stackoverflow.com/questions/1030169/git-easy-way-pull-latest-of-all-submodules>

Submodules seem a better clutter-free solution for an app's plugins, which might only see one or two changes in a month --- is the above something that could be added as a custom script? Never done that before and I'm likely to mess it up!

Be great to see this in SourceTree if it is possible, for this kind of scenario it's handy.


author: jeanfabre
body: Yep, I would also enjoy this function, app plugins and libraries really win with submodules, so it's something that should be encouraged with a proper implementation in sourceTree.


author: Jonas Stawski
body: Is this still the case? We use submodules on a daily basis, it would be nice to just pull the changes and set the submodule to the right commit automatically right from the main repo


author: Xiyue Chen
body: check this "perform submodule actions recursively" option:![submodule.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/46611iE3599478456C90C4/image-size/large?v=v2&px=999 "submodule.PNG")

comments: author: David Schmidt
body: Way to answer something from 2013, Xiyue! Literally came here with this question less than a week after you posted this answer.


author: Xiyue Chen
body: lol happy to help :) - its the first search came out for me on Google so think someone like you might find it


author: CabbageWarrior
body: This answer literally saved me this morning! xD Thanks a lot!


author: John Mitchell
body: FYI, 2021 calling.. this helped me just now too! Sometimes necro'ing a post isn't bad at all!


Tags: git

pull-request

repository

submodule
Sourcetree does not find installed Kaleidoscope (on one computer?!)
Asked by Alexander Schatten:

1. I use two Macs: one Macbook Air, one iMac.
2. On both I have installed the recent version of SourceTree and Kaleidoscope.
3. On both I have selected Kaleidoscope as external Diff tool

On the Air everything is working as expected. On the iMac, SourcTree does not find (?) Kaleidoscope...

SourceTree was updated in between as well as Kaleidoscope. Nothing changed.

Any ideas?


Answers:
author: KieranA
body: Hi Alexander,

This is typically because Kaleidoscope's command line tools aren't installed. With Kaleidoscope 2 the command line tools are a separate installation. Go to Kaleidoscope menu \> Integration then install ksdiff.

Cheers


author: AlecRust
body: Installing the command line tools from within Kaleidoscope failed for me but installing it manually with the installer worked:

<http://www.kaleidoscopeapp.com/ksdiff2>


author: aeberbach
body: I'm here - over a year after the original question - because I got the same cryptic message when trying to use Kaleidoscope with Sourcetree.

Over a year and you can't add "Please check that the Kalediscope command line tools are installed." to the error message?


author: Tom Harrington
body: I'm having the same issue. With Kaleidoscope selected as the external diff tool, clicking "External Diff" does nothing. I **do** have the Kaleidoscope command-line tools installed:

```
$ type ksdiffksdiff is hashed (/usr/local/bin/ksdiff)
```

This is with SourceTree 1.5.6 and Kaleidoscope 2.0.1 (both Mac app store versions) on Mac OS X 10.8.2.

comments: author: stevestreeting
body: From the 1.5.7 release notes:

* Fix support for Kaleidoscope diff when updated to version 2.0+

:)

We can no longer update SourceTree on the App Store though ([here's why](http://blog.sourcetreeapp.com/2012/06/29/mac-app-store-sandboxing-update/)) , please switch to the direct version from our website to get updates after 1.5.6.[](http://blog.sourcetreeapp.com/2012/06/29/mac-app-store-sandboxing-update/)


author: Tom Harrington
body: Oh, sandboxing. Say no more, I get the picture. I'm getting the latest version now.

I'd suggest that the page at <http://www.sourcetreeapp.com> should indicate what the current version is. I had been to that page a couple of times, but there was nothing on it to indicate that my copy was out of date.


author: Klaas Hermanns
body: Great! This helped! Thanks!

But the error message of SourceTree could be a little more specific ;)


Tags: kaleidoscope