TortoiseGit客户端 人称小乌龟 类似于SVN那种框框
图标类似于一个小乌龟
https://tortoisegit.org/download/

界面类似于这样
vs其实也有git

Visual Studio Code也有

GitHub for Desktop

不带三方合并工具,必须自己手动解决冲突
Source Tree目前是最好用,容易上手的git GUI工具
官网
https://www.sourcetreeapp.com/enterprise
这个是企业版 个人版好像没办法跳过登录注册很麻烦
我们就用这个提交
先下载

典型的
安装最常见的程序功能。建议大多数用户使用。
习俗
允许用户选择要安装的程序功能及其安装位置。建议高级用户使用。
完成
将安装所有程序功能。需要的磁盘空间最多
就安装选第二个可以选择安装位置
安装完双击打开

让二选一登录 我们跳过登录
把下方地址

然后回车就行了
%LocalAppData%\Atlassian\SourceTree
在这个目录下创建这个json文件

[
{
"$id": "1",
"$type": "SourceTree.Api.Host.Identity.Model.IdentityAccount, SourceTree.Api.Host.Identity",
"Authenticate": true,
"HostInstance": {
"$id": "2",
"$type": "SourceTree.Host.Atlassianaccount.AtlassianAccountInstance, SourceTree.Host.AtlassianAccount",
"Host": {
"$id": "3",
"$type": "SourceTree.Host.Atlassianaccount.AtlassianAccountHost, SourceTree.Host.AtlassianAccount",
"Id": "atlassian account"
},
"BaseUrl": "https://id.atlassian.com/"
},
"Credentials": {
"$id": "4",
"$type": "SourceTree.Model.BasicAuthCredentials, SourceTree.Api.Account",
"Username": "",
"Email": null
},
"IsDefault": false
}
]
把这个粘贴进去再打开SourceTree
如果你是个人版就没有用记得卸载干净,还有之前的那个目录下删除完。如果安装选择第一个type也会没用
然后再打开提示

因为咱们安装过git所以直接跳到第二步
然后选不想用这个界面

然后就进来了
找到我们想上传的git文件夹目录
右键
输入命令添加 就是之前的Live2D项目
$ git init
Initialized empty Git repository in D:/Live2D/.git/
添加
别忘了把之前做的剔除文件粘贴过来

点击暂存所有

用树状视图不然看不懂

因为我们不是在这里创建而是直接加的所以还要用命令行
这里右上角可以直接打开命令行

$ git commit -m 'live2D 2.0 Demo GalGame'
这样才有了master分支

如果还要分支在这里可以创建

远端连接我们的GitHub

创建一个新库 我发现

这里可以直接选不提交 不过那也是新项目创建了

添加完毕


选择OpenSSH会自动去寻找你的公钥

如果提交界面是灰色的就重新启动
提交没有东西就推送远程库



刷新查看远程库成功
然后如果不更新的把本地删除修行了
然后我会把之前帖子的一些Demo源码连接补上
对了忘了说提交的时候Unity也要做和之前SVN一样
Unity要设置一下 生成.meta的格式和把二进制转化为文本 不然无法对照合并


还有一件事 你上传文件没有指定语言就会自动按最多的算默认语言
但是有时候会不对 可以这么修改
创建这个脚本就可以了


这样是把别的这样后缀脚本都识别转换为C# 这样就手动控制GitHub的显示了
项目点击这个条可以去看你的代码总量占多少

我是提交有个大坑 代码显示百分之70都是RPC 但是根本没这个代码 点进去一看都是.X结尾的图片
然后把.X结尾都识别为C#就完事
网友评论