|
From: | Dmitry Gutov |
Subject: | Re: Stupid git! |
Date: | Sat, 12 Sep 2015 13:53:49 +0300 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:40.0) Gecko/20100101 Thunderbird/40.0 |
On 09/12/2015 01:40 PM, David Kastrup wrote:
When things start looking fishy, don't just stumble on blindly. Save what you got somewhere else, and _then_ try muddling through.
And in the case of Git, you don't even need to go "somewhere else". Committing changes is a safe way to remember them. Even if you commit them to master, and then do something unsafe like rebase or 'reset --hard', 'git reflog' will still allow you to find any commit previously created in this local repository.
[Prev in Thread] | Current Thread | [Next in Thread] |