Question

Thinking of trying Git on Windows - anyone can share their experiences (+/- ve both) ?

Asked by: zorba111

Me = business owner and part time sw developer

I can see that version control would also be useful for the non-software part of our business too, to version word docs, excels etc etc.

Past experience: Visual Source Safe, PVCS (grrrr !!!), Clearcase - all approx 10years ago !!

I've read up about Git and it sounds great. Free, fast, powerful. Written by geniuses (albeit on unix / linux)

However, not much info for windows users (no surprise as it was written by the guy who invented Linux - haha)

I do NOT want to compile a windows version from source code. I am NOT a unix geek (unfortunately, not smart enough) though I can remember some commands etc. We have only windows - SBS2003 and XPpro.

I do not have any existing repositories using Git or anything else to connect to - I will  be creating my own.

Anyone been down this journey or similar and can share experience of Git on windows ?
Is Git ok or am I biting off miore than i can chew ?
If so, can anyone recommend alternatives.

much obliged,
Z

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2008-12-24 at 16:47:33ID24008661
Tags

git

,

version control

,

recommendation

Topics

Version Control

,

Project Management

,

Change Management

Participating Experts
2
Points
300
Comments
8

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Solitaire's Journey
    I live in Antwerp (Belgium), and want buy the game-card Solitaire's Journey. Please help me please leon.vandeputte@skynet.be
  2. can not git on the internet
    I can not git on the Internet,When I try it will say this program is not allowed.
  3. how invented/owns text
    was text file invented with windows 3.1 or was it there even before PC times, with mainframes? thanks

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: bilco105Posted on 2008-12-27 at 09:22:57ID: 23248842

Personally I would reccommend Subversion for version controlling. We use it to version control all our system configuration files, DNS zonefiles, scripts, project documentation etc - its extremely flexible as you can see.

I've had no experience with Git though - so maybe other people can chime in here.

 

by: spdr870Posted on 2008-12-31 at 08:21:19ID: 23270941

I really share your pain in working with PVCS! That is a nightmare! I am still working with this piece of crap every day.

I can really recommend GIT to you. It is true that the program itself is not very user-friendly for most windows users. This is because it is just a command line tool. This is not a real problem anymore, there are a few tools available that have a nice GUI.

What you need to do is install MSYSGIT from http://git.or.cz/ . When installing it, you will be asked to put git in the system path, this is not default, but you need this, so choose this.

After installing msysgit, you need to install a tool to work with. I use GitExtensions wich I find very good (probably because I wrote the toolkit myself...). You can download GitExtensions from http://sourceforge.net/projects/gitextensions/.

You probably want to create a central repository... that is possible, but not the way you used to. Lets say you have a directory on a shared network drive you want to create the shared repository on, you can do this in GitExtensions by choosing "Init new repository" and check "central repository".

You have a nice empty central repository now, but you cannot just add files to it...... You NEED to create a repository on your local machine also, just init a new repository in the same dir as the sourcecode you want to control is in. You can now add the files you want to countrol by choosing commit. You will now notice that git that all files will be committed if you continue, even compiled files and debug info. DO NOT COMMIT THIS!!! To "exclude" or in git terms "ignore" these files, create a .gitignore file in the root of your new repository, on the same level as the .git directory, with something like this in it:
*.obj
*.exe
*.dll
*.html
*.exp
*.pdb
*.user
*.aps
*.pch
*.rgs
*.vspscc
*_i.c
*_p.c
*.ncb
*.suo
*.tlb
*.tlh
*.bak
*.cache
*.ilk
*.log
*.htm
*.zip
[Dd]ebug/
*.lib
*.sbr
[Ll]ib/
[Rr]elease*/
[Dd]ebug*/
[Tt]est[Rr]esults/
If you commit now, all compiled files will be ignored. Now you have an initial commit, all files are now in your local repository. Now you need to push this commit to the central repository using the "push" option in GitExtensions. Remember to check "Push all branches" because the central repository doen's now about your branch yet.

Other users will NEVER create a own local repository from now. When they start developing, they FIRST clone the central repository to there local drive. Then commit to this local repositroy, and push to the central repository. If they want new commits made to the central repository, they PULL the changes from there.

One last thing: if developers edit the same file, they do not lock the file. When pulling each others changes, they get a merge conflict. Git can let you sovle these. You need to download a tool for this, kdiff3. KDiff3 doesn't need to be installed, just copy kdiff3.exe into programfiles/git/bin/. GitExtensions probably warned you about this when starting it the first time, it also tells you how to set git up to use kdiff3.

If you have questions, just ask.

PS. I cannot recommend subversion. Its just not git....

 

by: zorba111Posted on 2009-02-17 at 13:58:48ID: 23664708

what a journey - a bit like going out for a pint of milk and ending up circumnavigating the coast of ireland!! here is what I posted on my blog (siliconmouth.wordpress.com) a few days after initial posting (27/12/08)

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
The hunt for an SCM tool - leads to GIT !
December 27, 2008
So there I was on Christmas Eve hacking away at a websites code, having made an edit to about the 50th file over a three month period.

Not for the first time it occured to me that I needed some sort of software configuration support - indeed previously Id read the very good SCM comparison on wikipedia (for some research on a recruitment project as it happens) and was surprised to see so many freeware/shareware/open source solutions had entered the market in the ten years or so since Id last used one!

Id made a mental note to go back to that list when I had some time so I guess that by Christmas Eve a combination of the stress of managing source code by hand must have reached critical mass, and that, combined with it being holiday time, gave me justification to commit the half-day or so I hoped it would take to pick out and install a decent solution.

Git seemed to score well and the more I read about it the more excited I became, especially when I read the history - conceived by one Linus Thorvald (thats right - the inventor of Linux) to support the open source teams working on the latest versions of the Linux kernel. This stuff was coming with a fine pedigree.

There seemed to be a windows port also, and although fairly new, had become mature enough to win over a few friends for itself in the blogosphere so with their help I sat down and installed Git.

The installation was a dream, which is very rare for open source stuff, ESPECIALLY on Windows, however when I sat down to go through the tutorial and the user guide thats when the fun started.

The tutorials were more aimed at either open source developers looking to hook into big open source projects to contribute (test and/or develope) where the projects were already well defined, or linux/c/shell heads.

The half-day got stretched and stretched, all the time it seemed I was just round the corner from enlightenment, so I kept plugging away. Plus I was desperate to get it dealt with quickly as I didnt want to be sidetracked from the other project (itself a sidetrack) too long. All of which contributed to put me in a GIT-induced frenzy over the Christmas period. My partner, kids, parents, siblings etc. barely got a look in as I nerded away in an upstairs or faraway room somewhere. In my more lucid moments I questioned my own sanity, and in my less lucid moments I wondered if  someone had made the whole thing up as a wind-up to catch out non-hackers who wanted something for nothing.

I finally found an active forum on Git, in fact it was the definitive forum on Git, run by Junio Hamann, the guy Linus had put in charge of developing Git after hed got the initial prototype of the ground. These guys were serious unix kernel guys and open source gurus but I was desperate to get somewhere (who knows what that feels like - hands up !) so I posted my feeble little newbie question on there just after midnight on Christmas day (or should I say Boxing Day) and switched back to the user manual.

Imagine my shock and surprise when none other than the legend himself Junio Hamano responded half an hour later! He gave me some great pointers, and over the next 24hour period with his and others help I finally got my head around how to do our basic workflow using Git.

As its quite complex, no sooner had I done it my little workflow mock up, than I did it again (taking my cue from Einstein, who used to derive relativity repeatedly) and then again, and then typed it all up, as the stuff is complex enough that if you didnt use it for a while youd be back close to square one.

Im going to publish it now on this blog as Im sure Im not the only one who has / will come up against this.

 

by: zorba111Posted on 2009-02-17 at 14:03:05ID: 23664760

the work continued, not as smoothly as I'd have hoped. I posted this on my blog the day before your posting spdr870:

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Taming the wild mustang that is GIT
December 30, 2008
Believe it or not, I had budgeted half a day for getting git installed, learned, and all the versions safely stowed away.
That was on Xmas eve (24th Dec.)
 
Ive been on this every day since - gawd, its becoming an Odyssey.
 
SCM is a support to my software development, which is a support to my business (a user business, not technology based) and in a normal year (not like this current one) software dev would be <10% of our effort. I can sense the beauty of git, but A WEEK ! to get close to making the first LIVE COMMIT.
 
Im going to assert that a large number of possible users will not be interested, or how shall I put it better, theyl be very interested in git, but thats where it will stay. The blogosphere is littered with the burnt bodies of those who have tried to ride this dragon. Gawd its tempting to give up and install CVS, Mercurial or something, the only thing keeping me going is that I HATE quitting !
 
What is it about this stuff ? I am not unintelligent but struggling with this.
 
It seems like to do something simple you have to understand EVERYTHING -
its not like other systems with a clear set of basic, intermediate and advanced commands that are fairly standalone.
 
everything in git seems so interleaved - its like relativity, or nuclear physics !
Im sure git nirvana is coming sometime for me,
gawd please may it be in this lifetime!
 :-)

 

by: zorba111Posted on 2009-02-17 at 14:18:43ID: 23664950

on 31/12 in a posting on the git list I said:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
"Hi Sitaram,

Yes the post arrived thanks !

I've done more C++ than C, but pointers etc. I can dig, malloc not, but its just a memory allocation like new, so ok.

The concept of a linked list I could get, just the implementation was unfamiliar (as I dont have a compsci bacround) but I guess I wanted to try and understand the implementation in C before responding to you.

But the concept helped me get commits in a unidirectional chain. So thnks.

However I am disillusioned with git - after nearly a week solid I find it can't do something simple that I take for granted in every other SCM I've ever used, and that is to be able to navigate to a prev version and get a clean exact copy of the filesystem of that project copied out into a directory.

You guys don't need to do that sort of thing v. often so its not a key function, so fair enuff.

I am installing mercurial right now, will trial that.

Thanks for all your help.

I won't say goodbye for ever in cse I'm back here in a few days !
For now,
Ciao!

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

After looking at the documentation for mercurial for 5 mins I could see the exact command I needed to achieve my simple test:

> hg update -r<version#>

for what its worth I finally worked out what the corresponding command should be for git:

$ git checkout <version> .
$ git checkout <versoin>

or reverse the order, doesn't matter.
One checks out the version but takes into the accout whats in the index, the other cleans the index (from what I can remember). Heigh ho, all academic now.

I'm sorry to any git-advocates if my test my seem trite and not practical, but its what I use to test SCMs. Its like a panic button - if everyting is going crazy, can I get back to solid ground with one simple action? Git fails, Hg (mercury) succeeds. Ok, a tiny bit slower, but still a proper DVCS. I'm stil sore about that wasted holiday period when I could 'a got mercury in 5mins, oh well.....

 

by: zorba111Posted on 2009-02-17 at 14:23:51ID: 23664997

what I posted to a kind hearted git-advocate from the list who followed up with me a few days later on the 2nd Jan
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
HIM> i hope your git stuff is still coming along nicely.  it's a beautiful tool, and i don't know where i'd be without version control.  i can relate to your troubles, including your linux ones when that guy sent you a bash script.  i was fed up myself 9 months ago with being confused, so i bought a linux laptop from dell, dove in, and never looked back.  oddly enough, i work for microsoft...

ME> Would love to have the time to look into linux, I'm probably halfway there as I used to write unix scripts about 15 years ago. At the end of the day, these days I run a small IT & technology recruitment agency, and rather than hire someone to do our tech work, I now make it a point of pride to do it myself. Apart from anything else, it gains the respect of the techhies and hirers we deal with. So tech is less than 25% of my annual work, hence its indulgent of me to spend time on stuff that doesn't directly support my business, especially times being tough. Plus I have a complex job on my hands sorting out these versions of our website. Our ex-webdeveloper made some unauhtorised accesses and hijacked a link where he put something up that was not good for our company, and I only just found out about it recently. I may need to be on top of the files in case we decide to take a lawsuit, and the very least for damage limitation and to develop security and close loopholes.

I have to admit that I have sidelined git, and now am on mercurial. I just got really cheesed off about 3 or 4 days ago, before I got "$ git checkout <version>" followed by "$ git checkout ." was what I needed. I saw in about 5 mins how to do what I needed in mercurial. Ok, its not as fast, but if git saved me even 30secs per transaction, I'd need to do 2000 of them this year to win back the week I've spent learning it (never gonna do that in 10 years, at my rate). Oh but git is a beautiful tool. I have to think of potential collaborators though, and learning curve.

Its a shame though, as I so wanted to be beautiful and clever, but I'm resigned now to being "stupid and ugly" (what Linus calles non-git users) - haha - but at least I can sleep at night now.

 

by: zorba111Posted on 2009-02-17 at 14:31:49ID: 23665069

final word on the matter, an email I sent someone inviting me to an evening event about MS's SCM offering, Team Foundation Server

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Thanks Damien,

Not my bag as we're on DVCS using Mercurial (Hg) for source code

...having tried "git" and been left lying by the roadside by it
- boy does it live up to its name - one week studying to find out how to do a simple revert to a past version for a project (and its not even one command either, but 2x required sequentially, that are almost identical but subtly different - NO THANKS !!). None of Linus' pals on the git list could get their heads round anyone wanting to do something that simple !

Found what I needed after 5mins looking at mercurial - ok, performance not up to gits stellar speeds, but still 2nd best in the universe, and with 5mins vs 1week to learn it was a walkover :-)

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
still using Hg (mercurial) and not regretting it for a second. Occasionally I still forget commands if I hven't used it for a week or two, and need to look them up. Hg is about 10x simpler than git, so gawd only knows how I'd have managed had I stuck with git.

If you have an IQ of 500, a masters in CompSci, lots of time and write unix kernels for kicks, git is the one.
For mortals, it has to be mercurial.

END OF

 

by: zorba111Posted on 2009-02-17 at 14:37:26ID: 23665115

experts I'm giving you 100 each for bothering to answer, well 200 to 870 for going beyond the call with all that info (u werent' to know I'd crossed sides already by that time :-)

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...