Skip to content

Instantly share code, notes, and snippets.

@daaaaaayoon
Last active September 1, 2020 07:09
Show Gist options
  • Save daaaaaayoon/f185d95cf71b427eea61d4e7aff73031 to your computer and use it in GitHub Desktop.
Save daaaaaayoon/f185d95cf71b427eea61d4e7aff73031 to your computer and use it in GitHub Desktop.
Git commit으로 issue 종료하기

Closing issue with commit

  • commit시 종료를 의미하는 키워드들이 commit메세지 내부에 있고, issue번호가 같이 기입되어있는 경우 해당 issue를 종료한다.

    #> git commit -m "[ADD] Problem Solving close #15"

    => 이런식으로 종료 키워드 close와 issue number를 같이 기입하면 push시 15번 이슈가 같이 close된다.
    => 여러개의 issue number가 있는 경우 기입된 issue들을 모두 함께 종료함

  • 종료 키워드

    • close / closes / closed
    • fix / fixe s/ fixed
    • resolve / resolves / resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment