随笔分类 - Git
摘要:在 Git 中,你可以使用 .gitignore 文件来指定哪些文件或目录应该被忽略,不加入版本控制。如果你想忽略 Source/UI/fout/unpackage/ 目录下的所有文件夹和文件,你可以在 .gitignore 文件中添加以下规则: Source/UI/fout/unpackage/*
阅读全文
摘要:注意:先备份 --查询最近提交的hash ID(查找上一个版本的) git log git reset --hard hash ID(上一个版本的)
阅读全文
摘要:git rm 10编码/Src/xxx/bin/Debug/xxx.pdberror: the following file has local modifications:10编码/Src/xxx/bin/Debug/xxx.pdb(use --cached to keep the file, o
阅读全文
摘要:当使用 gitblit.cmd 启动失败 1、原因就是我服务器的内网ip变化导致 方法:./data/gitblit.properties 文件中; server.httpBindInterface=xxx.xxx.x.xx;
阅读全文
摘要:1、git rm -r --cached 要忽略的文件 (如: git rm -r --cahced build/*, 如修改列表中的内容全部是不需要的, 那么你可以使用最最简单的命令搞定git rm -r --cached .) 2、将要忽略的文件添加到.gitignore文件中去(如果是目录的话
阅读全文
摘要:问题如题! 能使用的必要条件是: 1、创建的仓库 Code 中 必须 有 README.md 文件,内容自定 2、设置模板在仓库中 Settings -->GitHub Pages -->Chang theme 设置后会在Code 根目录生成一个 _config.yml 文件,添加两个选择
阅读全文