-
Notifications
You must be signed in to change notification settings - Fork 9
Git notes
You can use git rebase, for example, if you want to modify back to commit bbc643cd, run
$ git rebase --interactive 'bbc643cd^'
In the default editor, modify pick to edit in the line whose commit you want to modify. Make your changes and then commit them with the same message you had before:
$ git commit --all --amend --no-edit
to modify the commit, and after that
$ git rebase --continue
to return back to the previous head commit.
WARNING: Note that this will change the SHA-1 of that commit as well as all children -- in other words, this rewrites the history from that point forward. You can break repos doing this if you push using the command git push --force
"git rewrite history - How to modify a specified commit in git? - Stack Overflow." $site. April 13, 2018. $publisher, Web. April 13, 2018. https://stackoverflow.com/questions/1186535/how-to-modify-a-specified-commit-in-git?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
CLI snippets for
git
.
This checklist—adapted from
bahmutov/npm-module-checklist
—provides useful tips to ensure your module is ready for production deployment and publication.
Openly declare the health of your product, project, community, and source code with these essential badges. (GitHub SaaS only.)
Icons, images, gists, code snippets, etc.
- Architecture Decision Record status labels
- Octicon cheatsheet
- Project status badges
- TechRadar labels
Stellar languages, frameworks, platform, techniques, and tools.