1 handle git
2
3 env GIT_AUTHOR_NAME='Bryan C. Mills'
4 env GIT_AUTHOR_EMAIL='bcmills@google.com'
5 env GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME
6 env GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL
7
8 git init
9
10 at 2021-08-11T13:52:00-04:00
11 git add cmd
12 git commit -m 'add cmd/issue47650'
13 git branch -m main
14 git tag v0.1.0
15
16 git add go.mod
17 git commit -m 'add go.mod'
18
19 git show-ref --tags --heads
20 cmp stdout .git-refs
21
22 git log --oneline --decorate=short
23 cmp stdout .git-log
24
25 -- .git-refs --
26 21535ef346c3e79fd09edd75bd4725f06c828e43 refs/heads/main
27 4d237df2dbfc8a443af2f5e84be774f08a2aed0c refs/tags/v0.1.0
28 -- .git-log --
29 21535ef (HEAD -> main) add go.mod
30 4d237df (tag: v0.1.0) add cmd/issue47650
31 -- go.mod --
32 module vcs-test.golang.org/git/issue47650.git
33
34 go 1.17
35 -- cmd/issue47650/main.go --
36 package main
37
38 import "os"
39
40 func main() {
41 os.Stdout.WriteString("Hello, world!")
42 }
43
View as plain text