Skip to content

Combining repositories #23811

Combining repositories #23811
May 25, 2019 · 3 answers
You must be logged in to vote

🚨  WARNING: At no point in what I describe below did I need to use git push --force. If you find yourself with the urge to use git push --force, then you are at risk of losing data and you should back out and start over. git push --force is a potentially destructive command, use it at your own risk. 🚨

Let me start by saying that you should protect yourself from data loss by using scratch repositories to perform your experiments. A scratch repository is one that is disconnected from all other repos so that you can’t possibly mess up anything but the scratch repo, but the various data sources that you’re using to build the scratch one are guaranteed intact. One of the nice things about git …

Replies: 3 suggested answers

You must be logged in to vote
0 replies
Answer selected
You must be logged in to vote
0 replies
You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants