News for hackers. Stuff that matters.
Re:Why Git is Better Than X by nostrademons on Monday December 01, 2008 @05:50PM (#382261)
'git mv' for moving files, and I'm overly dependent upon 'git status' for checking what's changed.
Re:Why Git is Better Than X by gcv on Monday December 01, 2008 @07:32PM (#382401)
Agreed on both points, although 'git mv' is optional. As long as the old file is 'git rm'ed and the new file is 'git add'ed in the same commit, git detects the rename quite reliably.
Re:Why Git is Better Than X by jrockway on Monday December 01, 2008 @07:45PM (#382415)
mv is just sugar, though, you can easily copy the file using unix "cp" and delete/add to get the same result. Git does not track renames.
Re:Why Git is Better Than X by etal on Wednesday December 03, 2008 @07:43PM (#385087)
Or, just use the Unix mv, and let Git figure out what you did at the next "git add .".