Icons on Git Files in local machine - macos

I am coming from SVN world! and with Tortoise SVN if I was looking at my folders and files they had small icons like a green check mark, a blue plus sign, etc so I could visually see what is changed,etc...But I can't see that visual thing for Git, I installed GitHub for Mac from here:http://mac.github.com
Is there any other thing I should install ? or any better software recommendations?

The GitHub client seems to be made to interact with, well, github.com !
Have a look at that other question, multiple fine OS X clients are mentioned :
https://stackoverflow.com/questions/1158650/easy-to-use-git-client-for-non-technical-people

As an alternative answer, try from the command line. git status. Then hit up arrow to do it again next time. There are many reasons to use git from the command line:
history
piping
tab completion
scripts
speed

Related

where to download GIT for windows? [duplicate]

I want to install git on windows. my main interest is using it from command line rather than a gui.
Googling takes me to http://code.google.com/p/msysgit/downloads/list but this has words like preview and beta - gives me a cool feeling. Where can I download it and which version.
I am using the msys based version of git on Windows. It's actually really well done. You get lots of niceties for free like bash tab completion, branch indication, gitk is hooked up, etc.
The fact that they are unwilling to call these releases "final" has never been an issue. I've never had any problems.
And btw, github sends you to that installer for git on Windows too. Which should give you a bit more confidence.
gitforwindows.org and git-scm.com are both legit.
The Download for Windows page links to git-for-windows.github.io, which is now a redirect to https://gitforwindows.org/.

Tortoisehg opens console windows when working with subrepos. How do I stop it?

I have a mercurial repo with a git subrepo.
Whenever I open TortoiseHG, multiple (5-10) console windows are opened and quickly closed (in less than 1 second). I'd like to make tortoise work without showing those windows.
My best lead so far is this old thread.
It's for SVN, but it seems to be on the right track.
I'm ok with modifying python scripts, though I'd prefer to make it work without resorting to that.
I'm using msysgit with openssh on windows.
Have a look at this class:
http://hg.intevation.org/mercurial/crew/file/61c8327ced50/mercurial/subrepo.py#l901
That should contain the relevant code. This might also be of use:
http://hg.intevation.org/mercurial/crew/file/61c8327ced50/mercurial/win32.py#l281

move git repository and files from Ubuntu to OS-X

I've been using Git on my Linux (Ubuntu) machine to track changes to C++ code.
Now, i'm working on Mac (OS-X 10.8), so i though i will just copy the whole folder of sources together with .git from Linux to Mac.
However, that does not lead to anything good. Git lists me huge number of modified files, i guess all of them.
I'm not sure, but i guess that might have something to do with the line endings in Linux and OS-X. So, what is the correct sequence of actions i should do in such situation to have a smooth transfer from one OS to another?
Thanks in advance,
Denis.
EDIT
solved the issue by setting
filemode=false in .git/config
is it the proper solution? I don't quite understand what caused a problem?
EDIT2
forgot to mention, the original repository is cloned from "git://..."
EDIT3
apparently, the problem was that i used a USB flash drive to carry things from one os to another, and did not thought that it could make my life harder :) coppied everything again from scratch without USB and the problem is gone.
Assuming that you have ssh access to your account on the Ubuntu machine, I suggest cloning over ssh:
$ git clone ssh://user#ubuntu-machine/path/to/git/repo
By using the actual git clone operation on your Mac OS X machine you shouldn't run into any problems.
For reference, the GIT URLS section of the git-clone man page has all the URL format of all possible git transports.

Is there a good way to work with a remote git repo in Windows?

I want to be able to use Windows-based development tools (e.g. Winmerge, Eclipse, etc.) on a repo sitting on a remote Linux machine. With my current setup, I issue git commands in a shell via VNC, and therefore use the Linux-based tools -- kdiff3, gitk, gedit, etc. I do have access to all elements in the repo (source, .git/, etc.) via a Samba share. With this share -- mapped to a Windows network drive -- I work with whatever version my current git branch is pointing to.
Is there a Windows-based solution that works with a remote repo (say, over SSH) that allows me to execute the majority of my workflow (checkout, commit, diff, merge, etc.)?
Have you tried msysgit? Its a cygwin mingw based git client for Windows. I used it while I was using Windows and it works fairly well.
GitExtensions is a Windows GUI around msysgit, mentioned by Chaitanya. It has drawbacks but allows most Git operations to work in a graphical interface. I use it since I switched to Git.
You can use TortoiseGit to manage a clone of the repo right on your local machine. Your IDE should then be able to perform git operations directly on it. (Well, NetBeans can at least, I'm not an Eclipse user, so I'm not sure what git support it has built-in.)
MsysGit and the Git Gui are pretty effective from Windows. Start here
I have found that they do all the basics pretty well, and then I swap over to a git bash window [a git/unix version of a DOS cmd window, though more powerful] for the more specialist commands.
It has worked quite effectively and doesn't need any great expertise.

I currently use SVN with Linux. How do I add files from my Windows Desktop?

You know, the regular "svn commit". "svn up."
When I did svn co, it was linked with SSH.
svn co +ssh or something.
How would I link this with Windows? I'm using Windows and I'd like to put some code i this SVN. What tools do I use to get started? Can I checkout normally, with the Linux syntax?
For Win you REALLY wan't to use http://tortoisesvn.tigris.org/. It's a GUI to SVN and facilitates things a lot.
EDIT
You also might find this tutorial helpful: http://tortoisesvn.net/ssh_howto.
Cheers.
If you simply want to use a Subversion client on Windows, the best option is TortoiseSVN.
If you want to have your own Subversion repository, then do the following.
Subversion involves two kinds of parties: the server, which has all the data necessary to construct the repository, and the client, which performs most of the user-initiated operations against the repository. You need to do a few things:
Set up a Subversion server.
Add or create the relevant repositories.
Make sure the server is visible to all the clients that want to see it.
Then each client simply accesses the server the same way, e.g. svn co http://mycomputer/svn/shared/trunk.
Yes you can use the normal syntax but it's probably easier to use tortoisesvn which gives you a nice explorer plugin
If you're coming from Linux to Windows, you'll want to install cygwin. Lots of tools you'll really miss on Windows are available from cygwin.
It's good to know that TortiseSVN is there, but it's just a svn gui. It's unlikely that anyone coming from a Linux environment would be interested. I used it briefly then got rid of it.
If you want to check out repositories by URL, you will need to set up Apache, including the DAV modules. Check here: https://web.archive.org/web/1/http://articles.techrepublic%2ecom%2ecom/5100-10878_11-5902186.html
Another option over tortoisesvn, if you use linux and windows (like me) AND you use eclipse on both is to use the eclipseSVN. This way usage on both OSes are the same. You can get it by doing a Software Updates in Help of eclipse.

Resources