•  


Options for managing commits in GitHub Desktop - GitHub Docs
Skip to main content

Options for managing commits in GitHub Desktop

You can use GitHub Desktop to maintain an easy-to-follow commit history.

About commit history in GitHub Desktop

When you're contributing changes to a repository, your commit history should tell an easy-to-follow story about how you arrived at the changes you've made. To help people review your work, and to make it easier for people to find when and why changes were introduced to a repository, we recommend you follow certain best practices, such as:

  • Organizing your commits into a sequential, easy-to-follow order
  • Writing clear commit messages that include your intent and any necessary context
  • Making small commits that contain related changes

Often, it is difficult to follow these best practices perfectly at the point where you're making changes. You might realize you need to undo the changes in a commit you've made, edit a commit message, or reorder your commits to tell a clearer story. With GitHub Desktop, you can manage your commit history directly from the user interface.

Note: Where possible, you should avoid changing the history of commits that have already been pushed to the remote repository. Other contributors may have already based work on these commits.

Options for managing commit history in GitHub Desktop

Option Description More information
Undo a commit Restores the changes from a commit to your working directory, so you can make further changes before re-committing. Useful if you made a mistake in the changes you included. Not possible if you have already pushed the commit to the remote repository. " Undoing a commit in GitHub Desktop "
Amend a commit Lets you edit your most recent commit message or combine new changes with the most recent commit. Useful if the changes in the previous commit are still valid, but you have made further changes that fit into the same commit. " Amending a commit in GitHub Desktop "
Revert a commit Creates a new commit that reverses the changes of another commit in your history. Useful if a commit has already been pushed to the remote repository, and you don't want to remove the commit from the repository's history. " Reverting a commit in GitHub Desktop "
Cherry-pick a commit Copies a commit from one branch to another. Useful if you have accidentally committed changes on the wrong branch, or if you need to apply a bug fix across different branches you're working on. " Cherry-picking a commit in GitHub Desktop "
Reorder commits Changes the order of commits in your history. Useful if changing the order would make your progress easier to follow. " Reordering commits in GitHub Desktop "
Squash commits Combines multiple commits into a single commit. Useful if you have a series of small commits that contain related changes. " Squashing commits in GitHub Desktop "
- "漢字路" 한글한자자동변환 서비스는 교육부 고전문헌국역지원사업의 지원으로 구축되었습니다.
- "漢字路" 한글한자자동변환 서비스는 전통문화연구회 "울산대학교한국어처리연구실 옥철영(IT융합전공)교수팀"에서 개발한 한글한자자동변환기를 바탕하여 지속적으로 공동 연구 개발하고 있는 서비스입니다.
- 현재 고유명사(인명, 지명등)을 비롯한 여러 변환오류가 있으며 이를 해결하고자 많은 연구 개발을 진행하고자 하고 있습니다. 이를 인지하시고 다른 곳에서 인용시 한자 변환 결과를 한번 더 검토하시고 사용해 주시기 바랍니다.
- 변환오류 및 건의,문의사항은 juntong@juntong.or.kr로 메일로 보내주시면 감사하겠습니다. .
Copyright ⓒ 2020 By '전통문화연구회(傳統文化硏究會)' All Rights reserved.
 한국   대만   중국   일본