Safe way to do this by creating a new branch with a particular commit hash.
Here is an example:
git checkout -b new_branch 6e559cb( replace with your hash )
That’s it!!!
WordPress Tips & Tricks
Safe way to do this by creating a new branch with a particular commit hash.
Here is an example:
git checkout -b new_branch 6e559cb( replace with your hash )
That’s it!!!
Yesterday I updated my macOS to latest Catalina version. After updating it GIT was not working. That always happens to me :-).
I was getting following error.
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Many of you might also get this error. So the solution is pretty simple. Just follow a couple of steps and solve the problem.
Step 1: Open Terminal and run following command
xcode-select --install
Step 2: After this command, there will be a prompt to update the software. So update that.
And wait for the software to be updated.
That’s it.