vardius/gollbackmaster BranchesTags Code Folders and files Latest commit Cannot retrieve latest commit at this time. History31 Commits .github Create FUNDING.yml Jun 7, 2019 .gitignore v1.0.0 May 11, 2019 .hound.yml v1.0.0 May 11, 2019 .travis.yml Remove instance, make methods global ...
go-git 几乎没有值得注意的高级功能,其中之一是可插拔存储系统,类似于 Libgit2 后端。 默认实现是内存存储,速度非常快。 r, err := git.Clone(memory.NewStorage(), nil, &git.CloneOptions{ URL: "https://github.com/src-d/go-git", })
Latest commit Cannot retrieve latest commit at this time. History438 Commits examples example: 更新 May 20, 2024 .gitignore 添加go.sum Mar 17, 2020 LICENSE 添加License Jan 5, 2018 README.md docs: 补充文档 May 16, 2024 alipay.go feat: 涉及http请求方法加入context入参 May 20, 2024...
git config --global user.name userName git config --global user.email userEmail 使用HTTPS 协议时,命令行会出现如下账号密码验证步骤。基于安全考虑,Gitee 建议配置并使用私人令牌替代登录密码进行克隆、推送等操作 Username for 'https://gitee.com': userName ...
git 撤销commit 如果不小心commit了一个不需要commit的文件,可以对其进行撤销。 先使用git log 查看 commit日志 找到需要回退的那次commit的 哈希值, git reset --hard commit_id 使用上面的命令进行回退 以下是豆瓣的 苍炎的日记 起因: 不小新把记录了公司服务器IP,账号,密码的文件提交到了git ...
How to reset a commit You could follow these steps to revert the incorrect commit(s) or to reset your remote branch back to correct HEAD/state. 回到顶部 1.checkout the remote branch to local repo. git checkout your_branch_name 回到顶部 ...
kafkawriter.WriteMessages(context.Background(), kafka.Message{ Value: []byte(fmt.Sprint(i)), }) logrus.Infof("send msg") time.Sleep(time.Millisecond * 10) } } 为了方便观察现象,写入端会向kafka中顺序写入 1、2、3...。这样在消费者就能知道是否丢失了消息。
// 初始化队列funcNewJobQueue(cap int)*JobQueue{return&JobQueue{capacity:cap,queue:list.New(),noticeChan:make(chan struct{},1),}}// 工作单元入队func(q*JobQueue)PushJob(job*Job){q.mu.Lock()defer q.mu.Unlock()q.size++ifq.size>q.capacity{q.RemoveLeastJob()}q.queue.PushBack(job)q...
git config --global user.name userName git config --global user.email userEmail 使用HTTPS 协议时,命令行会出现如下账号密码验证步骤。基于安全考虑,Gitee 建议配置并使用私人令牌替代登录密码进行克隆、推送等操作 Username for 'https://gitee.com': userName ...
For example, version v2.0.0 of gitlab.com/my/project must be named and imported as gitlab.com/my/project/v2. Go uses ‘pseudo-versions’, which are special semantic versions that reference a specific VCS commit. The prerelease component of the semantic version must be or end with a ...