Git — Merging Unrelated History

Doing something fishy to delete your history?


It’s okay, it’s not a sin. In fact, it’s a must things to do. E.g: your credential API or any related password fields.

When you tried to pull remote changes, please bear in mind that you’ve to use this additional arguments:

git pull [remote name] [branch name] --allow-unrelated-histories

Now, you got to go. Pushing your clean history!

Please tell this to your team as well, due what you do is might be “rewriting” the whole git history.

References:

Happy coding, guys!

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.