Skip to content
Discussion options

You must be logged in to vote

It's great that you're aiming for a clean and polished GitHub profile and repository! Having a "clean" history can definitely make a good impression, especially for a special README.md repository.

Let's break down how you can approach removing commit history. This can be a bit nuanced, so I'll explain different scenarios.

Important Warning: Rewriting Git history, especially on a public repository, can have significant consequences. If others have cloned your repository, rewriting history will cause major problems for them when they try to pull or push. Only do this on repositories where you are the sole contributor, or where you have explicitly coordinated with all other contributors to d…

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@AlbertoSRQ
Comment options

This comment was marked as off-topic.

@AlbertoSRQ
Comment options

Comment options

You must be logged in to vote
2 replies
@kalk-ak
Comment options

@AlbertoSRQ
Comment options

Comment options

You must be logged in to vote
1 reply
@AlbertoSRQ
Comment options

Answer selected by AlbertoSRQ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Profile Showcase your work on GitHub with a personalized profile, bio, contributions and pinned repositories Question Ask and answer questions about GitHub features and usage
4 participants