Philip:
Thanks so much for your reply and it does give me some different
viewpoints.
I am a new guy for the linux and mac-os world ,sorry for that. But
anyway ,my colleague has set up a local git server on his ubuntu ,then he
git-added and git-committed all the same code on the same local ubuntu
machine as mine to the local git server ---if my understanding is correct
,on this scenario there will not be any file system conversion issue --but
unfortunately the link files and .o files,.a files ,.so files still are
ignored and he also can't get the same code copy after he performed the
git-clone on the ubuntu machine from the local git server ---- may you give
out more comments for this case ?
Thanks.
在 2012年10月6日星期六UTC+8下午8时46分17秒,Philip Oakley写道:
>
>
> The Mac OS HFS mangles various non-ascii characters. So what you put in
> and what you get back (filenames) don't always match because the encodings
> and composings of special characters changes.
>
> There is an upgrade to git going through at the moment that will
> cononicalise [make consistent] the filename formatting. "git on Mac OS
> and precomposed unicode"
> http://thread.gmane.org/gmane.comp.version-control.git/201178/
>
> The repo will contain your file contents. It's just that their names have
> been 'adjusted' to a different composition style.
>
> Philip
>
> ----- Original Message -----
> *From:* Sean <javascript:>
> *To:* [email protected] <javascript:>
> *Sent:* Saturday, October 06, 2012 12:31 PM
> *Subject:* [git-users] Re: git can't push a specific link file to the
> remote server??
>
> These files really are there , but i can not push them into the remote
> repository , i don't know why .Now I have setup a SVN server it should be
> ok --by default svn will ignore all the .o,.so files ---but anyway i can do
> import with --no-ignore para...
> I am not sure if git has something like svn that will by default make git
> server to ignore the link file or .a file and .so files?
> Hope there will be an expert here to check my case for git fails to push
> link-file?
>
>
> 在 2012年9月27日星期四UTC+8下午4时17分21秒,Thomas Ferris Nicolaisen写道:
>>
>> On Wednesday, September 26, 2012 10:45:33 AM UTC+2, Sean wrote:
>>
>>> HI, All:
>>> I am a recently setup a git server on mac os ,meanwhile I use a git
>>> client on ubuntu to do interaction with this git server.
>>> I have a code directory(it's very large ,about 1G ) and I did the
>>> following commands to push it to server side:
>>> 1. cd ~/test
>>> 2. git init
>>> 3. git add .
>>> 4. git commit -m "clean copy for first commit to server"
>>> 5. git remote add origin
>>> ssh://gitadmin@mylocalgitserver/gitrepos/test
>>> 6. git push origin master
>>>
>>> In the code ,there are some directories which contain some link files
>>> ,something like this:
>>> > cd asm
>>> > ls
>>> arch arch-mb86r0x arch-s3c4510b
>>> config.h ptrace.h
>>> > ll st
>>>
>>> lrwxrwxrwx 1 gitadmin ubuntu10 11 2012-09-26 14:00
>>> arch -> arch-sc8810/
>>>
>>> my problem is ,after i finished the step 6 for push ,if i clone
>>> ths remote repo on server ,i can't see the link file "arch" at all so that
>>> i can't get a total same code copy as original source.
>>> But I also did try to make a simple code sample directory which
>>> only have a directory with one file and a link file to this directory , i
>>> can commit this code sample to local repo and push it to server side
>>> successfully ! Then if i checkout the code from remote ,i can get a total
>>> same code copy: a directory with one file and a link file to this directory
>>> ---- I am totally confused ...
>>> Is there anyone can help me out?
>>>
>>>
>>
>> The link file should be added to the repository normally.
>>
>> First check if the link file is actually present in the repository:
>>
>> cd ~/test
>> git ls-tree HEAD asm/
>>
>> If the link file is not there, it hasn't been checked in in the first
>> place. Perhaps it didn't exist at the time or something.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Git for human beings" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/git-users/-/FnL1EuiSmR4J.
> To post to this group, send email to [email protected]<javascript:>
> .
> To unsubscribe from this group, send email to
> [email protected] <javascript:>.
> For more options, visit this group at
> http://groups.google.com/group/git-users?hl=en.
>
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 2012.0.2221 / Virus Database: 2441/5312 - Release Date: 10/05/12
>
>
--
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/git-users/-/GliOryNgewwJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/git-users?hl=en.