git问题

如果出现下面问题

fatal: '/web/www/baidu' does not appear to be a git repository
fatal: The remote end hung up unexpectedly

可以这样修改

先删掉.git,然后

  1. $ git init
  2. $ git add .
  3. $ git remote add origin git@gitorious.org:project/project.git
  4. $ git commit -m "Initial version"
  5. $ git push origin master
原文地址:https://www.cnblogs.com/descusr/p/2918886.html