Tôi đang theo dõi instructions given here để tạo kho lưu trữ Git. Tất cả diễn ra tốt đẹp cho đến dòng cuối cùng:Lỗi gửi Git: "xuất xứ dường như không phải là kho lưu trữ git"
$ git push -u origin master
fatal: 'origin' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
Tôi đang sử dụng git phiên bản 1.7.11.3 trên OS X 10.6.8
$ git remote -v
lợi nhuận gì
Config file cho kho lưu trữ:
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
Tôi h quảng cáo để mở sudoers file sử dụng lệnh sudo visudo và thêm dòng sau vào nó (dưới đặc điểm kỹ thuật # đặc quyền tài khoản):
git ALL=(ALL) ALL.
Bây giờ nếu tôi làm:
$ git remote add origin /Volumes/500GB/git-repository/myproject.git
nó trở lại với không có lỗi, nhưng tôi không thấy bất kỳ mã trong kho (nó có các thư mục nói trên như chi nhánh, lưỡi câu, ...)
Nếu tôi làm:
$ git push -u origin master
fatal: 'origin' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
$ git remote -v
origin /Volumes/500GB/git-repository/myproject.git (fetch)
origin /Volumes/500GB/git-repository/myproject.git (push)
err Khá phổ biến. Hãy xem chủ đề này để được trợ giúp: http://stackoverflow.com/questions/10068172/git-push-origin-master-does-not-work – tymeJV
Đầu ra của lệnh "git remote -v" là gì? – brimble2010
Liên kết đến hướng dẫn của bạn đã biến mất, bạn có nhớ nó là gì không? –