Go to Post My mom's cousin heard from her friend who heard from her brother who heard from his barber who heard from his son that his teacher told him that his father's brother's sister's former roommate heard from Frank himself. - notmattlythgoe [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 08-01-2010, 20:17
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Git on Windows vs Git on Unix/Linux

Okay, so I've been trying out Git for a week or two, and it's taken me a bit to get the hang of it (because I'm not used to operating from the command line). However, I purchased Pro Git, because I was looking it up online so often, and have been fairly good since.

However, now I'm trying it on Windows. I personally use a MacBook, and run Windows in VMware Fusion, so I had been running Git from the Unix terminal. However, in order to make sure the programming team can use it, I need to test it on Windows. I chose msysgit, rather than cygwin, because it looked simpler to install and use.
So I install it and get it running, and cd to my repository, and run git status.
And it tells me every single file in my repository has been modified.
(I haven't tried committing, because I don't want to corrupt my repository.)

So I go back to the Unix terminal, and try git status, and it tells me there have been no changes.

Will this happen every time I switch between Windows and Unix? Or is there something wrong with my install?

Would I be better off with cygwin?
__________________
-- Marshal Horn

Last edited by kamocat : 08-01-2010 at 20:21.
  #2   Spotlight this post!  
Unread 08-01-2010, 20:37
basicxman basicxman is offline
Emily Horsman
FRC #2200 (MMRambotics)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Burlington, Ontario
Posts: 971
basicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant future
Send a message via AIM to basicxman Send a message via MSN to basicxman Send a message via Yahoo to basicxman
Re: Git on Windows vs Git on Unix/Linux

I just exported a git repo from my Windows box to my Ubuntu 9.10. Works perfect for me, probably your config... Git has an IRC channel...

#git
irc.freenode.net

After all Git was created by Linus Torvalds which is one of the core fathers of Linux - I would think it would work better on Linux.
  #3   Spotlight this post!  
Unread 08-01-2010, 21:11
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: Git on Windows vs Git on Unix/Linux

most likely \r\n vs \n issues
use Notepad++ (or equiv) and see if it is unix or dos/windows encoded
My expertise is SVN (and subclipse, no Command line needed) but you might want to check the mode: text or binary. It needs to be text or \n will not be translated to \r\n automatically (and vice versa and same for \r mac)
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
  #4   Spotlight this post!  
Unread 08-01-2010, 21:16
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,567
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Git on Windows vs Git on Unix/Linux

My guess is that it is because of the difference in windows / unix line endings and automatic conversions because of that difference. See http://code.google.com/p/msysgit/issues/detail?id=271
  #5   Spotlight this post!  
Unread 09-01-2010, 09:31
Nibbles Nibbles is offline
Interstellar Hitchhiker
AKA: Austin Wright
FRC #0498 (Cobra Commanders)
Team Role: Alumni
 
Join Date: Jan 2008
Rookie Year: 2003
Location: Arizona
Posts: 103
Nibbles is just really niceNibbles is just really niceNibbles is just really niceNibbles is just really niceNibbles is just really nice
Re: Git on Windows vs Git on Unix/Linux

Quote:
Originally Posted by Joe Ross View Post
My guess is that it is because of the difference in windows / unix line endings and automatic conversions because of that difference. See http://code.google.com/p/msysgit/issues/detail?id=271
If that's the case the relevant setting would be core.autocrlf = true
__________________
Help standardize match data! Use the XML interchange format. (Specification page)
AAA_awright on Freenode IRC chat. (Join us at ##FRC on chat.freenode.net, or in your browser)
  #6   Spotlight this post!  
Unread 10-01-2010, 00:25
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: Git on Windows vs Git on Unix/Linux

I've been trying that, and it doesn't seem to make a big difference.
So, I tried committing it, and we'll see if it creates any problems with LabVIEW.
__________________
-- Marshal Horn
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why you should care about version control, and why I suggest git fixermark Programming 23 21-01-2010 09:57
C and LabView version control with Git Nibbles NI LabVIEW 31 17-01-2010 19:22
git for source code management? d235j Programming 2 08-01-2009 22:59
Linux And Windows XP Raven_Writer Chit-Chat 4 06-08-2003 18:53


All times are GMT -5. The time now is 01:07.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi