Git push error '[remote rejected] master -> master (branch is currently checked out)'

前端 未结 30 2012
半阙折子戏
半阙折子戏 2020-11-22 00:07

Yesterday, I posted a question on how to clone a Git repository from one of my machines to another, How can I \'git clone\' from another machine?.

I am now

30条回答
  •  南笙
    南笙 (楼主)
    2020-11-22 00:32

    You should only be pushing to a bare repository. A bare repository is a repository that has no checked out branches. If you were to cd to a bare repository directory, you'd only see the contents of a .git directory.

提交回复
热议问题