golangの日記

Go言語を中心にプログラミングについてのブログ

Git

Go言語 GitHub Actions テストとリリース

GitHub Actions で Go のテストとリリースページでの配布を自動化したい ディレクトリ構成 . ├── .github │ └── workflows │ ├── release.yml │ └── test.yml ├── .goreleaser.yml ├── hello.go ├── hello_test.go ├── README.md ├── LICENSE └── cmd └── he…

Gitコマンドでコミットメッセージを空にする

Git

GitHubで他人のリポジトリを見ていると、コミットメッセージに、何もない(空白の)ものを見かけます。 以下のように、メッセージを空にすると Aborting commit due to empty commit message. のエラーになります。 $ git commit -m '' Aborting commit due to…

github や gitlab で clone,pull が Permission denied になる問題と解決

Git

git で clone,pull すると Permission denied が表示される問題と解決 git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rightsand the repository exists. 前…