[FlashCodersNY] git with the program

Tim Beynart timbeynart at gmail.com
Sun Mar 15 08:33:29 PDT 2009


In SVN a "rename" is a delete/add operation. AFAIK that is the convention in
source control.

On Sat, Mar 14, 2009 at 3:13 PM, Bruce Epstein <bruce at zeusprod.com> wrote:

> I confirmed that the issue was Vista choking on folder names containing
> question marks or ending in spaces.
>
> I couldn't figure out how to rename the folders directly on the server
> (github) but there is more than one way to skin a cat....
>
> I ended up cloning the git repository onto my Mac, then renaming the
> folders and committing/pushing the changes to the server.
>
> That allows Windows Vista to clone the repository successfully.
>
> So a word to the wise for those working on Mac/Unix:
>
> Don't use characters in folder and filenames that Windows can't
> tolerate....
>
> These include spaces at the end of a folder name, and the following
> characters anywhere in the filename:
> \ / * : ? " < > |
>
> I guess I am now officially a git expert, having evolved from a newbie
> overnight thanks the RingTFM.
>
> I also got more familiar than I wished to be with the Mac terminal and
> various utilities for the Mac, including details on setting up
> public/private keys and SSH. So if anyone runs into trouble on those things,
> feel free to ask.
>
> That said, any insights into using git are welcome.
>
> For example, to rename the offending folders, I renamed them in the Mac
> Finder, and then did a Commit/Push using OpenWithGITgui (or whatever the
> utility is named on the Mac). Git treated it like I deleted some folders and
> added others. Presumably there is a way to do a straight rename instead of
> treating the it like a delete/add operation.
>
>
> Cheers,
> Bruce
>
>  Date: 14 Mar 2009 01:15:20 -0400
>> From: "Bruce Epstein" <bruce at zeusprod.com>
>> Subject: [FlashCodersNY] git with the program
>> To: flashcodersny at flashcodersny.org
>>
>>
>> Hi All,
>>
>> I'm a git newbie and trying to use it on a project I need to examine.
>>
>> I'm having trouble cloning a git repository to my local machine, and I'm
>> about 90% sure that the problem is a folder with an extra space at the end
>> of the folder name such as "src/foo /morefoo"
>>
>> Vista chokes on the space in the foldername (I think) and generates the
>> error "fatal: cannot create directory at src/foo /morefoo
>>
>> I might be able to get it to work on, say, a Mac, but I'm on Vista.
>>
>> It is a bit of  catch-22 in that I can't rename the folder until I
>> successfully clone the repository, and I can't clone the repository until I
>> rename the folder.
>>
>> Perhaps I'm wrong, and I can rename the folder directly on the server
>> (github) using a git repository browser  (this would be trivial with
>> TortoiseSVN repository browser, in which I'm well versed).
>>
>> I googled around for a Vista-compatible git repository browser EXE but
>> couldn't find one (I found only the source for viewgit, but not an EXE).
>>
>> I tried seeing if GIT GUI's  "Open Existing Repository" feature acts like
>> a repository browser, but whatever I enter for the path to the git
>> repository, I get the error "Not a Git repository: foo". I'm probably
>> entering the wrong thing, so feel free to provide an example of the correct
>> path to an online repository.
>>
>> Any insights appreciated.
>>
>> Cheers
>> Bruce
>>
>
> _______________________________________________
> FlashCodersNY mailing list
> FlashCodersNY at flashcodersny.org
>
> http://mail.flashcodersny.org/mailman/listinfo/flashcodersny_flashcodersny.org
>



-- 
+ Tim Beynart
+ tim at timbeynart.com
+ 706.372.6994
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.flashcodersny.org/pipermail/flashcodersny_flashcodersny.org/attachments/20090315/5f09016f/attachment.html>


More information about the FlashCodersNY mailing list