ftp - Git init on a virtual volume -
i mounted (ftp) folder via transmit on mac volume. it's accessible , i'm able walk through directories terminal app.
but can't phone call git init without getting error message:
/volumes/ftpvolume/doc/.git: no such file or directory the .git folder should created through call, error message doesn't create much sense me. can setup git repository on local volumes call.
when seek connect folder git anyway through example
git remote add together origin https://username@bitbucket.org/repositoryowner/project.git then error message
stopping @ filesystem boundary (git_discovery_across_filesystem not set). is 1 problem connected other? , more import, possible initialize git repository on virtual volume?
i'm working on mac mount lion , creating volume trough app transmit.
the symptoms describe suggest either don't have write access ftp mount, or mount not back upwards filesystem hooks git uses manage files / directories. sec error, although sounds cryptic, means "git remote" command not find .git folder. specific error caused because when git doesn't find in current directory traverse upwards , check parent directories until filesystem boundary found. should help understand errors.
to help think you're trying go this: i'm going guess want code on ftp server remote repository via git push. that, seek next starting home directory or someplace other mounted ftp volume:
mkdir my_ftp_project cd my_ftp_project git init git remote add together origin https://username@bitbucket.org/repositoryowner/project.git export git_dir=`pwd`/.git/ cd /volumes/ftpvolume/doc/ git add together . git commit -m "initial commit" git force the key here utilize "git_dir" environment variable point git working repository. instead of trying create git repository on ftp server (which think bad thought anyways), above create repository on hd in home folder, , point git repository instead of having seek create new 1 on ftp.
note should "unset git_dir" after you're done in case need utilize git elsewhere in same shell. also, sure set git_dir 1 time again when come , want run more git commands on ftp mount against repository.
git ftp osx-mountain-lion
No comments:
Post a Comment