从CodePlex上的GIT仓库下载特定文件

时间:2015-05-07 19:35:43

标签: c# git codeplex

我正在尝试为我们的WinForms应用程序实现一个简单的自动更新服务,该服务在CodePlex上的GIT中托管。 我的自动更新程序需要一个json文件,其中包含最新版本号和安装程序URL。 我把这个文件放在另一个网络服务器上,我的更新可以很容易地读取文件。

为了让我们的生活不再复杂,我想在GIT中保存这个文件。 使用CodePlex浏览器,网址为https://mapwindow5.codeplex.com/SourceControl/latest#src/SolutionItems/mw5-update.json

我原本希望网址类似于https://git01.codeplex.com/mapwindow5/src/SolutionItems/mw5-update.json 但事实并非如此;(

有没有人从CodePlex GIT获得一个文件的经验?

谢谢, 保罗

1 个答案:

答案 0 :(得分:0)

尝试抓取,然后按照in this post所述的文件检出您需要的文件:

git fetch
git checkout -m <revision> <yourfilepath>
git add <yourfilepath>
git commit