How to solve git error: Server does not allow request for unadvertised object 3a2ceef391af73994dfeb0d8ef57ed6a52ef4238?

前端 未结 8 2641
攒了一身酷
攒了一身酷 2021-02-19 09:18

I wanted to pull commit \"3a2ceef391af73994dfeb0d8ef57ed6a52ef4238\" from branch android. I used the command:

$ git fetch origin 3a2ceef391af73994dfeb0d8ef57ed6a         


        
8条回答
  •  温柔的废话
    2021-02-19 10:00

    According to this answer and the given source it looks like BitBucket does not allow you to fetch a commit id, only references.

    I cannot say if you can configure this behavior, but I think you can:

    1. Pull the branch: git pull origin branchname
    2. Checkout the local commit id: git checkout

提交回复
热议问题