Guest User

Untitled

a guest
Mar 3rd, 2018
347
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.97 KB | None | 0 0
  1. dm@ts:~$ cd /media/http/local
  2. dm@ts:/media/http/local$ cd test
  3. bash: cd: test: No such file or directory
  4. dm@ts:/media/http/local$ mkdir test
  5. dm@ts:/media/http/local$ cd test
  6. dm@ts:/media/http/local/test$   git init
  7. Initialized empty Git repository in /media/http/local/test/.git/
  8. dm@ts:/media/http/local/test$   touch README
  9. dm@ts:/media/http/local/test$   git add README
  10. dm@ts:/media/http/local/test$ git commit -m 'first commit'
  11. [master (root-commit) 13b61c4] first commit
  12.  0 files changed, 0 insertions(+), 0 deletions(-)
  13.  create mode 100644 README
  14. dm@ts:/media/http/local/test$ git remote add origin git@github.com:shtrih/test.git
  15. dm@ts:/media/http/local/test$ git push -u origin master
  16. The authenticity of host 'github.com (207.97.227.239)' can't be established.
  17. RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
  18. Are you sure you want to continue connecting (yes/no)? y
  19. Please type 'yes' or 'no': n
  20. Please type 'yes' or 'no': n
  21. Please type 'yes' or 'no': n
  22. Please type 'yes' or 'no': y
  23. Please type 'yes' or 'no': no
  24. Host key verification failed.
  25. fatal: The remote end hung up unexpectedly
  26. dm@ts:/media/http/local/test$ git config --global user.name "Дмитрий"
  27. dm@ts:/media/http/local/test$ git config --global user.email s@hitagi.rudm@ts:/media/http/local/test$ cd ~/.ssh
  28. dm@ts:~/.ssh$ ls
  29. dm@ts:~/.ssh$ ls
  30. dm@ts:~/.ssh$ ls -l
  31. total 0
  32. dm@ts:~/.ssh$ ssh-keygen -t rsa -C "s@hitagi.ru"
  33. Generating public/private rsa key pair.
  34. Enter file in which to save the key (/home/dm/.ssh/id_rsa):      
  35. Enter passphrase (empty for no passphrase):
  36. Enter same passphrase again:
  37. Your identification has been saved in /home/dm/.ssh/id_rsa.
  38. Your public key has been saved in /home/dm/.ssh/id_rsa.pub.
  39. The key fingerprint is:
  40. aa:61:db:00:d0:81:0a:23:97:0b:a5:3c:a7:d8:6e:48 s@hitagi.ru
  41. The key's randomart image is:
  42. +--[ RSA 2048]----+
  43. | oo.             |
  44. |Boo.             |
  45. |**.o             |
  46. |oo=              |
  47. |.Eo     S        |
  48. |.o .   .         |
  49. |. o + .          |
  50. | . . *           |
  51. |    o .          |
  52. +-----------------+
  53. dm@ts:~/.ssh$ ssh -T git@github.com
  54. The authenticity of host 'github.com (207.97.227.239)' can't be established.
  55. RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
  56. Are you sure you want to continue connecting (yes/no)? y
  57. Please type 'yes' or 'no': yes
  58. Warning: Permanently added 'github.com,207.97.227.239' (RSA) to the list of known hosts.
  59. Enter passphrase for key '/home/dm/.ssh/id_rsa':
  60. Hi shtrih! You've successfully authenticated, but GitHub does not provide shell access.
  61. dm@ts:~/.ssh$ cd /media/http/local
  62. dm@ts:/media/http/local$ cd test
  63. dm@ts:/media/http/local/test$ git push -u origin master
  64. Enter passphrase for key '/home/dm/.ssh/id_rsa':
  65. Counting objects: 3, done.
  66. Writing objects: 100% (3/3), 198 bytes, done.
  67. Total 3 (delta 0), reused 0 (delta 0)
  68. To git@github.com:shtrih/test.git
  69.  * [new branch]      master -> master
  70. Branch master set up to track remote branch master from origin.
  71. dm@ts:/media/http/local/test$ git pull
  72. Enter passphrase for key '/home/dm/.ssh/id_rsa':
  73. Already up-to-date.
  74. dm@ts:/media/http/local/test$ git status
  75. # On branch master
  76. # Changed but not updated:
  77. #   (use "git add <file>..." to update what will be committed)
  78. #   (use "git checkout -- <file>..." to discard changes in working directory)
  79. #
  80. #   modified:   README
  81. #
  82. no changes added to commit (use "git add" and/or "git commit -a")
  83. dm@ts:/media/http/local/test$ git diff
  84. diff --git a/README b/README
  85. index e69de29..90b67dd 100644
  86. --- a/README
  87. +++ b/README
  88. @@ -0,0 +1 @@
  89. +Test.
  90. dm@ts:/media/http/local/test$ git commit -a -m "Added Test"
  91. [master bfc4459] Added Test
  92.  1 files changed, 1 insertions(+), 0 deletions(-)
  93. dm@ts:/media/http/local/test$ git push origin master
  94. Enter passphrase for key '/home/dm/.ssh/id_rsa':
  95. Counting objects: 5, done.
  96. Writing objects: 100% (3/3), 253 bytes, done.
  97. Total 3 (delta 0), reused 0 (delta 0)
  98. To git@github.com:shtrih/test.git
  99.    13b61c4..bfc4459  master -> master
Add Comment
Please, Sign In to add comment