Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some docs need to update #71

Open
cyb0225 opened this issue Feb 17, 2023 · 0 comments
Open

some docs need to update #71

cyb0225 opened this issue Feb 17, 2023 · 0 comments

Comments

@cyb0225
Copy link

cyb0225 commented Feb 17, 2023

When I was fixing a bug, I encountered the problem that the code could not be pushed to the remote repository.

error: src refspec main does not match any
error: failed to push some refs to 'https://github.com/cyb0225/iam-1.git'

I trid to find the solution and successfully I found the .git/hooks/commit-msg file.

# Copyright 2020 Lingfei Kong <[email protected]>. All rights reserved.
# Use of this source code is governed by a MIT style
# license that can be found in the LICENSE file.

# Store this file as .git/hooks/commit-msg in your repository in order to
# enforce checking for proper commit message format before actual commits. You
# may need to make the script executable by 'chmod +x .git/hooks/commit-msg'.

# commit-msg use go-gitlint tool, install go-gitlint via `go get github.com/llorllale/go-gitlint/cmd/go-gitlint`
go-gitlint --msg-file="$1"

I installed go-gitlint according to the comments, but it didn't work. And I found that in the higher version of the go language installation tool should use "go install" instead of "go get".

So I think some docs may be too old to solve problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant