Sunday, June 15, 2014

Compiling a specific commit from Git

cd /usr/local/src
git clone [ProjectX]
cd [ProjectX]
git checkout [commit checksum from Github]

mkdir build
cd build
cmake ..
make
sudo make install


To return to the master version:
...
git checkout master
...