I put a list of references a while ago but haven't got the time to really "finalize" it or anythingSince we've been into references lately, here is some of it (there are a few already mentioned... I'll update the list with other entries -- if necessary -- when I'll have more time).

P.S. : BTW, I'm using SmartGit a lot these days and I like it more and more.I'm still used to the "one pane" diff viewer of the basic git GUI though... for some (strange?) reasons I kinda like it. Anybody else?

One question- it seems that your repository in the case that you're not using something like github is purely local- is this true?

Yes, I imagine, unless you decide to move it somewhere else (other than github).

At some point I was thinking of setting my own "remote server" using a dropbox/spideroak/[...] account and use it as a git remote server. There are already a lot of examples of similar setup on the web. I could share a few links if you're interested.

Quote

And is there a way to have a copy of the repository without another machine?

Basically, when I wasn't using VSS, I was using a product called QVCS (very good... got a bit slow when the repo became large). I have two machines at home that I develop on (sometimes 3- but down to 2 right now), so I wanted a repository that I could share between machines, and of course use as a back up. I know that you can use Git that way, but I was trying to figure out how to do that without a central server.

So you want to be able to connect computer A to computer B and pull the changes from one to the other?Would using something like Dropbox/spideroak a possibility?There are many blogs where steps are described. A few good ones :

^ I thought that might be possible; but I thought that was also what the (D) in DVCS stood for... distributed? So I thought it was peer-to-peer from the description. Is that just a function of Git that it doesn't work that way? Or is the description wrong at wikipedia (which is always a possibility) or am I misunderstanding something?

if A and B are on a network, you can directly pull to A from B and conversely.

So how do I do that? I didn't see anything about it on any of the reference that I saw, though I might have just missed it. Can you point me to something that shows how to do that? I think I see the light... but I just can't figure out whether it's the end of the tunnel or a train...

2- in B, create a directory and clone the A repo:cd "your directory in B"git clone -l --no-hardlinks "path to your repo in A"

3- in B, add a reference to A:git remote add "name you want to give to this remote" "path to your repo in A"

4- in A, add a reference to B :cd "your directory in A"git remote add "name you want to give to this remote" "path to your repo in B"

Now from A or B, you can pull changes :cd "your directory in A"git pull "path to your repo in B"

ORcd "your directory in B"git pull "path to your repo in A"

[EDIT : you might want to do a "git fetch" and then a "git diff" followed y a "git merge", rather than a "git pull", that way you can review what you're bringing in.git fetch doesn’t touch your working tree at all but "pull" will.]

Just took 15 min to try it (to make sure...) and it seems to work well -- at least with the command line. (P.S.:Using "Pull" rather than "fetch" + "diff" + "merge" for such a setup seems more straight forward.)

I've used Tortoise SVN with the Express editions of Visual C#. Can Mercurial or GIT either one be used with these Express versions, or do they only function with the Professional/Enterprise versions of the Visual Studio IDE?

I've used Tortoise SVN with the Express editions of Visual C#. Can Mercurial or GIT either one be used with these Express versions, or do they only function with the Professional/Enterprise versions of the Visual Studio IDE?

Both of them operate on the files, so the version of VS shouldn't influence whether they work. If you're talking about integration with the IDE, that's a different story- you can browse the add-ons in VS to find the git-extensions and see if you can install the SC provider.

Some SmartGit feeback...I've been using it a lot more more since the end of May and I can say it's been extremely stable, reliable and easy to work with. It's a really good product. I'm starting to forget how to use the command line now...

Plus, as you noticed, the developer even dropped by to say hi and discuss criticisms and feature/modifications requests.

Highly recommended.

====

One thing I wish I could do sometimes, and I still use Tortoise Git for that : in the log window, I'd like to be able to select a bunch of commits and copy each of them in a list with their full message (context menu and/or maybe Ctrl+Shift+c by default).

Ctrl+c (copy) already copies the selected list, showing dates and the first line of each commit, but it would be nice to be able to do the same but with the whole message content for each entry/commit.

EDIT : One other small thing... "Commit" dialog (ctrl+k) : unless I'm mistaken, apart from hitting tab 2 times when in the commit dialog, there doesn't seem to be a way to hit the "commit" button directly. It would be logical to press alt+c maybe, or just enter. Note that since the commit message is preselected and has the focus, pressing enter clears it! fortunately a ctrl+z will restore it but it can be surprising...

« Last Edit: July 08, 2011, 01:06 PM by Armando, Reason: Added one more »

On a side note, I noticed that SmartGit now supports "git init" -- IIRC, it used to be that one had to use git from the command line for this

Quote

Project -> New Window -> Open an existing local or create a new repository

Thanks for the heads up! Didn't notice it. I asked for it a long time ago -- and, like you used the command line or tortoiseGit to to it.

Edit : actually, it was the clone --bare command I was having problems with... and while it's true I usually initialize my repos with the command line or TortoiseGit, i believe SmartGit has been offering the "Open an existing local or create a new repository" for a while (since v2.x) . I might be mistaken though...