Advertisement
Guest User

Untitled

a guest
Jul 24th, 2014
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. $ ./test2.sh
  2. + mkdir test_git
  3. + cd test_git
  4. + git init
  5. Initialized empty Git repository in /tmp/test_git/.git/
  6. + touch a
  7. + git add a
  8. + git commit -a -m 'initial commit'
  9. [master (root-commit) a89912d] initial commit
  10. 1 file changed, 0 insertions(+), 0 deletions(-)
  11. create mode 100644 a
  12. + git checkout -b new_branch
  13. Switched to a new branch 'new_branch'
  14. + echo test
  15. + git commit -a -m 'test changed'
  16. [new_branch d2c4601] test changed
  17. 1 file changed, 1 insertion(+)
  18. + git checkout master
  19. Switched to branch 'master'
  20. + echo test2
  21. + git commit -a -m 'test changed'
  22. [master 1945ab9] test changed
  23. 1 file changed, 1 insertion(+)
  24. + git checkout new_branch
  25. Switched to branch 'new_branch'
  26. + git branch
  27. master
  28. * new_branch
  29. + cat a
  30. test
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement