我正在关注this指南,但是我已经准备好了一切,但文件托管。我迷失在这里:
download_url是带有存储库代码的托管文件的链接。 Github将为您托管此功能,但前提是您创建了一个git标签。在您的存储库中,键入:git tag 0.1 -m“添加一个标记,以便我们可以将它放在PyPI上。”然后,键入git tag以显示标记列表 - 您应该在列表中看到0.1。输入git push --tags origin master以使用最新的标记信息更新Github上的代码。 Github创建tarball以便在https://github.com/ {username} / {module_name} / tarball / {tag}下载。
我是否应该使用git shell将现有的github存储库克隆到我的计算机上?
作为一个初学者,我可以说编码似乎比实际编码周围的绒毛容易5倍,有趣5倍:((对于绒毛阅读安装程序,项目骨架目录等)
答案 0 :(得分:0)
C:\Users\Dave\Desktop\distributing> git clone https://github.com/dmt257/hellodmt2.git
Cloning into 'hellodmt2'...
remote: Counting objects: 8, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 8 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (8/8), done.
Checking connectivity... done.
C:\Users\Dave\Desktop\distributing> git-tag 0.1 -m "adds a tag so that we can out this on PyPI."
git-tag : The term 'git-tag' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ git-tag 0.1 -m "adds a tag so that we can out this on PyPI."
+ ~~~~~~~
+ CategoryInfo : ObjectNotFound: (git-tag:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
C:\Users\Dave\Desktop\distributing> ls
Directory: C:\Users\Dave\Desktop\distributing
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 23/08/2016 07:56 helloDistribution
d----- 24/08/2016 06:26 hellodmt2
d----- 23/08/2016 14:16 hellodmt2Distribution
d----- 23/08/2016 08:02 hellodmtDistribution
C:\Users\Dave\Desktop\distributing> cd .\hellodmt2
C:\Users\Dave\Desktop\distributing\hellodmt2 [master ≡]> git tag 0.1 -m "Adds a tag so that we can put this on PyPI."
C:\Users\Dave\Desktop\distributing\hellodmt2 [master ≡]> git tag
0.1
C:\Users\Dave\Desktop\distributing\hellodmt2 [master ≡]> git push --tags origin master
Counting objects: 1, done.
Writing objects: 100% (1/1), 180 bytes | 0 bytes/s, done.
Total 1 (delta 0), reused 0 (delta 0)
To https://github.com/dmt257/hellodmt2.git
* [new tag] 0.1 -> 0.1
C:\Users\Dave\Desktop\distributing\hellodmt2 [master ≡]>
链接似乎是这种格式(在github帐户中的发布选项下),而不是如指南所示: