git tag: fatal: Failed to resolve 'HEAD' as a valid ref

前端 未结 5 1165

I am cloning a single branch from a repository and creating a tag in a python script. The commands are as follows.

git clone -b master --single-branch 

        
5条回答
  •  臣服心动
    2020-12-17 18:52

    If you have access to the remote repository

    cd /path/to/remote/repository
    git config --bool core.bare true
    

提交回复
热议问题