小编car*_*rds的帖子

无法进入git仓库

这是我到目前为止所做的,我会说这个程序适用于Ubuntu 9.10,它可能有不同版本的git.

server: mkdir ~/git

local: scp -r /../project name@url.com:~/git/
server: cd git
        cd project
        git init 
        git add .
        git commit -a -m "initial"

local: git clone name@url.com:/../git/project /home/name/project
   cd project
   capify .  (from the ruby gem capistrano)
   git add .
   git commit -a -m "capified"
   git push
Run Code Online (Sandbox Code Playgroud)

当我尝试推出时,我收到此错误消息:

   remote: error: refusing to update checked out branch: refs/heads/master
   remote: error: By default, updating the current branch in a non-bare repository
   remote: error: is denied, because it will make the …
Run Code Online (Sandbox Code Playgroud)

git

42
推荐指数
5
解决办法
6万
查看次数

标签 统计

git ×1