Guest User

Untitled

a guest
Feb 16th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. $ mkdir git-example
  2. $ cd git-example
  3. $ git init
  4. Initialized empty Git repository in /Users/grahambleach/git-example/.git/
  5. $ echo "This is a test repo" > README
  6. $ git add README
  7. $ git commit
  8. [master (root-commit) b8fd413] This is a test
  9. 1 file changed, 1 insertion(+)
  10. create mode 100644 README
  11. $ echo 'Oh no, it is not!' >> README
  12. $ git add README
  13. $ git commit
  14. [master dfd464c] Dummy
  15. 1 file changed, 1 insertion(+)
  16. $ git revert dfd464c
  17. [master 887e21f] Revert "Dummy"
  18. 1 file changed, 1 deletion(-)
  19. $ cat README
  20. This is a test repo
  21. $
Add Comment
Please, Sign In to add comment