oslab

LAB 12

Switch to the master branch

git checkout master

Create a file, add some content and commit the changes

vi <new-file-name>.txt
git add <new-file-name>.txt
git commit -m "Added <new-file-name>.txt"

Check the last commit (Note the ID for the next step)

git log -n 1

Revert the last commit

git revert <commit-hash>

Check the log to see the reverted commit

git log --oneline

END OF LABS HOME