git rev-parse refs/remotes/origin/master^{commit}
这里的 ^{master} 是啥意思?!在reset的时候^可是指代的上一版本啊?!
git rev-parse refs/remotes/origin/master^{commit}
这里的 ^{master} 是啥意思?!在reset的时候^可是指代的上一版本啊?!
2 回答1.5k 阅读✓ 已解决
1 回答773 阅读✓ 已解决
2 回答959 阅读✓ 已解决
1 回答952 阅读
1 回答724 阅读
615 阅读
214 阅读
If you want to make sure that the output actually names an object in your object database and/or can be used as a specific type of object you require, you can add the ^{type} peeling operator to the parameter. For example, git rev-parse "$VAR^{commit}" will make sure $VAR names an existing object that is a commit-ish (i.e. a commit, or an annotated tag that points at a commit). To make sure that $VAR names an existing object of any type, git rev-parse "$VAR^{object}" can be used.
在这里^{type}是指定类型的意思