Git on windows - cannot push to remote repository using the local (file) protocol -
i using git version 1.9.2-preview20140411 on windows 7 enterprise sp1 x64.
when seek force remote repository using local (file) protocol, error:
fatal: 'orgin' not appear git repository fatal: not read remote repository.
here steps reproduce:
$ cat pushtestcase.sh #!/bin/bash set -o xtrace cd /c/work/git git init --bare myprojectbare git clone myprojectbare myprojectclone cd myprojectclone echo "apples, oranges" > fruit.txt git add together fruit.txt git commit -a -m "first commit" git force orgin master git remote -v git remote show orgin $ pushtestcase.sh + cd /c/work/git + git init --bare myprojectbare initialized empty git repository in c:/work/git/myprojectbare/ + git clone myprojectbare myprojectclone cloning 'myprojectclone'... warning: appear have cloned empty repository. done. + cd myprojectclone + echo 'apples, oranges' + git add together fruit.txt warning: lf replaced crlf in fruit.txt. file have original line endings in working directory. + git commit -a -m 'first commit' warning: lf replaced crlf in fruit.txt. file have original line endings in working directory. [master (root-commit) 74ee22d] first commit warning: lf replaced crlf in fruit.txt. file have original line endings in working directory. 1 file changed, 1 insertion(+) create mode 100644 fruit.txt + git force orgin master fatal: 'orgin' not appear git repository fatal: not read remote repository. please create sure have right access rights , repository exists. + git remote -v origin c:/work/git/myprojectbare (fetch) origin c:/work/git/myprojectbare (push) + git remote show orgin fatal: 'orgin' not appear git repository fatal: not read remote repository. please create sure have right access rights , repository exists. $
originally tried remote repository on network drive. in order eliminate possible permission issues, i've reproduced problem using remote repository on local drive.
i know alternative setup ssh on server, much rather working using local protocol.
your script has typo. correct:
git force orgin master
to:
git force origin master
windows git
No comments:
Post a Comment