GITHub API问题与文件上传 [英] GITHub API Issue with file upload
问题描述
我试图通过Github API将文件上传到GitHub( http://developer.github .COM / V3 /回购/内容/ )。不知何故,我无法上传文件。当我尝试上传现有文件时,它给了我一个消息{\message \:\refs / heads / master expected to be at ee1cd720841a4b5b06a8339c333c56b1748e66f9\,\documentation_url\:\ a href =http://developer.github.com/v3/repos/contents/ =noreferrer> http://developer.github.com/v3/repos/contents/ \ }。当我去github并试图使用网站删除文件时,它给了我下面的错误。我可以将重置头移至以前的版本并继续前进。但我试图了解是什么导致了这种行为,我怎样才能在将来避免这种行为。谷歌和Github帮助都无法回答我,所以从社区寻找一些东西。感谢您的关注。
I am trying to upload file to GitHub via GITHub API (http://developer.github.com/v3/repos/contents/). Somehow I am not able to upload file. When I tried to upload existing file it gave me message "{\"message\":\"refs/heads/master expected to be at ee1cd720841a4b5b06a8339c333c56b1748e66f9\",\"documentation_url\":\"http://developer.github.com/v3/repos/contents/\"}". When I went to github and tried to delete file using website it gave me below error. I can do workaround with reset head to previous version and move on. But I am trying to understand what caused this behavior and how can I prevent same in future. Neither Google nor Github Help was able to answer me so looking for something from community. Thanks for looking into it.
推荐答案
这篇关于GITHub API问题与文件上传的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!