群星
ParaWikis
最新百科
都市天际线2百科
英雄无敌3百科
维多利亚3百科
奇妙探险队2百科
罪恶帝国百科
英白拉多:罗马百科
热门百科
群星百科
欧陆风云4百科
十字军之王2百科
十字军之王3百科
钢铁雄心4百科
维多利亚2百科
ParaWikis
申请建站
ParaWikis
ParaCommons
最近更改
随机页面
加入QQ群
工具
链入页面
相关更改
特殊页面
页面信息
页面值
阅读
编辑
编辑源代码
查看历史
讨论
编辑“
模组创作教程
”(章节)
警告:
您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您
登录
或
创建
一个账户,您的编辑将归属于您的用户名,且将享受其他好处。
反垃圾检查。
不要
加入这个!
== Git repository == [[wikipedia:Git|Git]] is a version control system, it is used primarily in software development. It tracks changes to files and helps in collaboration. With Git repository set up you can: * Track and revert changes to your mod to any point prior. * Share code, including links to specific lines with ease. * Generate release packages from specific repository revisions, for the ease of download. * Allow others to propose tweaks to your code with ease, which you can accept and merge in with a press of a button. For the purpose of this tutorial we use popular [https://github.com/ GitHub] which offers free hosting service: * Create a folder specifically for GitHub repositories, ie. <code>G:\GitHub\</code> * Clone your mod folder to the above GitHub repositories folder. Rename cloned folder to something recognisable online if you want, in the example we rename <code>G:\GitHub\tutmod\</code> to <code>G:\GitHub\tutorial-mod-stellaris\</code>. * Create GitHub account on [https://github.com/ GitHub homepage]. * Download and install GitHub desktop client (available for Windows and Mac, Linux has distro-specific clients you can look into). * Open GitHub desktop client and login to your account (File > Options > Accounts). This is not strictly necessary but will allow you to push code to online repository. Further steps assume this is the case. * File > New Repository. {| style="margin:auto;width:100%;" ! Create !! Preview initial commit !! Publish !! Available online |- style="vertical-align:top;" | [[File:GitHub create repository Stellaris mod.png|thumb|center|Make sure name matches mod folder name in the GitHub repositories folder, this will allow GitHub to include your files in the initial commit. Initialise this repository with README (can be edited later). Fill in description and leave other options unchanged.]] || [[File:GitHub create repository Stellaris mod 2.png|thumb|center|Check if all changes are desired (green lines means added, red removed). You can edit files in repository folder at any time and changes will be immediately seen in this window. Press Publish repository (after initial upload this button is used to push changes).]] || [[File:GitHub create repository Stellaris mod 3.png|thumb|upright|center|Selected name will be a part of repository's URL. You can deselect private option if you wish repository to be immediately visible to the public. This can be changed at any time.]] || [[File:GitHub create repository Stellaris mod web.png|thumb|upright|center|Repository is now available online. Pictured example can be accessed at https://github.com/OldEnt/tutorial-mod-stellaris .]] |} Any changes to the repository simply require adding, removing or changing files in the repository folder. GitHub program monitors folder for any changes and will allow for update push if those are detected. Change of the code state is called a commit. <!--== See also ==-->
摘要:
请注意您对群星百科的所有贡献都被认为是在知识共享署名-非商业性使用-相同方式共享下发布,请查看在
群星百科:版权
的细节。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源。
未经许可,请勿提交受版权保护的作品!
为防止机器编辑,请完成下方验证
取消
编辑帮助
(在新窗口中打开)
该页面属于1个隐藏分类:
Category:含有受损文件链接的页面
×
登录
密码
记住登录
加入群星百科
忘记密码?
其他方式登录