mkdir test cd test git init . touch to_be_reverted git add . git commit -a echo "Wrong text" > to_be_revertedcheck it with
cat to_be_reverted Wrong text git commit -a git revert HEAD cat to_be_reverted
it should be empty like before
Programmer 4 life
mkdir test cd test git init . touch to_be_reverted git add . git commit -a echo "Wrong text" > to_be_revertedcheck it with
cat to_be_reverted Wrong text git commit -a git revert HEAD cat to_be_reverted
No comments:
Post a Comment