go-git/go-git main BranchesTags Code Folders and files Name Last commit message Last commit date Latest commit History 2,475 Commits .github _examples cli/go-git config internal plumbing storage utils .gitignore CODE_OF_CONDUCT.md COMPATIBILITY.md...
Latest commit History 945 Commits .github .gitignore AUTHORS CHANGELOG.md LICENSE README.md auth.go auth_test.go benchmark_test.go buffer.go collations.go compress.go compress_test.go conncheck.go conncheck_dummy.go conncheck_test.go
go-git 几乎没有值得注意的高级功能,其中之一是可插拔存储系统,类似于 Libgit2 后端。 默认实现是内存存储,速度非常快。 r, err := git.Clone(memory.NewStorage(), nil, &git.CloneOptions{ URL: "https://github.com/src-d/go-git", })
1)使用 git checkout 跳转至某个 Commit-ID,而这个 Commit-ID 刚好目前没有分支指向它。当切换至其他分支时,这个 (HEAD detached at e0c619c) 临时分支是会被干掉。可以使用 git switch -c <new-branch-name> 命令来创建一个新分支来指向该 Commit-ID 2)Rebase 的过程其实也是处于不断的detached HEAD状态 ...
go-git has few notable advanced features, one of which is a pluggable storage system, which is similar to Libgit2 backends. The default implementation is in-memory storage, which is very fast. r, err := git.Clone(memory.NewStorage(), nil, &git.CloneOptions{ URL: "https://github.com...
git 撤销commit 如果不小心commit了一个不需要commit的文件,可以对其进行撤销。 先使用git log 查看 commit日志 找到需要回退的那次commit的 哈希值, git reset --hard commit_id 使用上面的命令进行回退 以下是豆瓣的 苍炎的日记 起因: 不小新把记录了公司服务器IP,账号,密码的文件提交到了git ...
cmd, internal/build, docker: advertise commit date in unstable build v… 6年前 .gitattributes .gitattributes: enable solidity highlighting on github (#16425) 7年前 .gitignore internal/ethapi: add block override to estimateGas (#30695)
.gitignore 1、过滤文件添加。 5个月前 Dockerfile 细节修改 7个月前 LICENSE Initial commit 2年前 README.md 修改说明 25天前 docker-compose.yml 【最近更新】 1年前 go.mod feat:完成登录、字典缓存配置 3个月前 go.sum feat:完成登录、字典缓存配置 3个月前 main.go...
INFO[0000]xxhash backend:GoUnsafe{"level":"info","msg":"Welcome to gravity.","time":"2023-04-02T22:54:38+08:00"}{"level":"info","msg":"Release Version: 0.0.1+git.e934fa33","time":"2023-04-02T22:54:38+08:00"}{"level":"info","msg":"Git Commit Hash: e934fa33dfbf5a...
details =make([]*CommitDetail, 0, 10) getCommitMsgCmd := exec.Command("git", "log", oldCommitID+".."+commitID, "--pretty=format:%s::%ce::%H") getCommitMsgCmd.Stdin = os.Stdin getCommitMsgCmd.Stderr = os.Stderr b, err := getCommitMsgCmd.Output() ...