Advertisement
Guest User

Untitled

a guest
Jan 30th, 2015
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. remram@vebian:~$ git init a
  2. Initialized empty Git repository in /home/remram/a/.git/
  3. remram@vebian:~$ cd a
  4. remram@vebian:~/a$ touch a
  5. remram@vebian:~/a$ git add a && git commit -m a
  6. [master (root-commit) 1a19233] a
  7. 1 file changed, 0 insertions(+), 0 deletions(-)
  8. create mode 100644 a
  9. remram@vebian:~/a$ git tag -a 1.0 -m a
  10. remram@vebian:~/a$ cd ..
  11. remram@vebian:~$ git clone --single-branch -b 1.0 --no-checkout a b
  12. Cloning into 'b'...
  13. done.
  14. remram@vebian:~$ cd b; git branch
  15. * (no branch)
  16. remram@vebian:~/b$ cd ..; rm -Rf b
  17. remram@vebian:~$ git clone --single-branch -b master --no-checkout a b
  18. Cloning into 'b'...
  19. done.
  20. remram@vebian:~$ cd b; git branch
  21. * master
  22. remram@vebian:~/b$ cd ..; rm -Rf b
  23. remram@vebian:~$ git clone --single-branch -b 1a19233 --no-checkout a b
  24. Cloning into 'b'...
  25. warning: Could not find remote branch 1a19233 to clone.
  26. fatal: Remote branch 1a19233 not found in upstream origin
  27. fatal: The remote end hung up unexpectedly
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement