![](https://img-blog.csdnimg.cn/20190918135101160.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Git
Git
rs勿忘初心
刻意练习,享受创造的快乐。公众号:rs勿忘初心
展开
-
用了6年git,不知道cherry-pick是啥意思
git stash是用来临时保存当前工作目录的修改(即使它们没有被添加到暂存区)。这样你可以在不提交的情况下切换分支或执行其他操作,而不会丢失当前的工作。git stash是用来恢复上次被git stash保存的工作。它会将存储的修改应用到当前工作目录,并从 stash 列表中移除。原创 2024-07-17 21:12:59 · 610 阅读 · 0 评论 -
Git报错,commit时提示 git: ‘interpret-trailers‘ is not a git command. See ‘git --help‘. cannot insert ...
centos 7U5系统机器,git commit提交代码时,报错提示:git: ‘interpret-trailers‘ is not a git command. See ‘git --help‘. cannot insert change-id line ....原创 2024-06-20 16:48:47 · 314 阅读 · 0 评论 -
git恢复commit过的代码
1、修改完还未gitadd使用gitcheckout回滚使用暂存区的文件覆盖工作区,所以执行完gitadd.之后,再执行该命令是无效的。和gitadd.是一对反义词。2、gitadd提交还未commit使用gitadd提交到暂存区,还未commit之前,使用gitreset和gitreset#先用Head指针覆盖当前的暂存区内容gitcheckout.#再用暂存区内容覆盖工作区内容或者使用直接使用head(在git中,用HEAD表示当前版本3、4、......原创 2022-07-26 17:43:59 · 5726 阅读 · 0 评论 -
.gitignore文件不生效解决方法
参考:https://www.cnblogs.com/zzcc/p/5695883.html原创 2019-03-25 16:58:21 · 6663 阅读 · 1 评论