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 
  To: git-users@googlegroups.com 
  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 git-users@googlegroups.com.
  To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
  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 post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.

Reply via email to