xZise xZise - 3 months ago 7
Git Question

How do I load a specific git commit?

I cloned a repository and want to switch between to a commit to test my plugin against the core.

Answer

Instead of passing the name of a branch, you can pass any commit ID to checkout:

git checkout <commit-id>

See the man page.

Comments