Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dm@ts:~$ cd /media/http/local
- dm@ts:/media/http/local$ cd test
- bash: cd: test: No such file or directory
- dm@ts:/media/http/local$ mkdir test
- dm@ts:/media/http/local$ cd test
- dm@ts:/media/http/local/test$ git init
- Initialized empty Git repository in /media/http/local/test/.git/
- dm@ts:/media/http/local/test$ touch README
- dm@ts:/media/http/local/test$ git add README
- dm@ts:/media/http/local/test$ git commit -m 'first commit'
- [master (root-commit) 13b61c4] first commit
- 0 files changed, 0 insertions(+), 0 deletions(-)
- create mode 100644 README
- dm@ts:/media/http/local/test$ git remote add origin git@github.com:shtrih/test.git
- dm@ts:/media/http/local/test$ git push -u origin master
- The authenticity of host 'github.com (207.97.227.239)' can't be established.
- RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
- Are you sure you want to continue connecting (yes/no)? y
- Please type 'yes' or 'no': n
- Please type 'yes' or 'no': n
- Please type 'yes' or 'no': n
- Please type 'yes' or 'no': y
- Please type 'yes' or 'no': no
- Host key verification failed.
- fatal: The remote end hung up unexpectedly
- dm@ts:/media/http/local/test$ git config --global user.name "Дмитрий"
- dm@ts:/media/http/local/test$ git config --global user.email s@hitagi.rudm@ts:/media/http/local/test$ cd ~/.ssh
- dm@ts:~/.ssh$ ls
- dm@ts:~/.ssh$ ls
- dm@ts:~/.ssh$ ls -l
- total 0
- dm@ts:~/.ssh$ ssh-keygen -t rsa -C "s@hitagi.ru"
- Generating public/private rsa key pair.
- Enter file in which to save the key (/home/dm/.ssh/id_rsa):
- Enter passphrase (empty for no passphrase):
- Enter same passphrase again:
- Your identification has been saved in /home/dm/.ssh/id_rsa.
- Your public key has been saved in /home/dm/.ssh/id_rsa.pub.
- The key fingerprint is:
- aa:61:db:00:d0:81:0a:23:97:0b:a5:3c:a7:d8:6e:48 s@hitagi.ru
- The key's randomart image is:
- +--[ RSA 2048]----+
- | oo. |
- |Boo. |
- |**.o |
- |oo= |
- |.Eo S |
- |.o . . |
- |. o + . |
- | . . * |
- | o . |
- +-----------------+
- dm@ts:~/.ssh$ ssh -T git@github.com
- The authenticity of host 'github.com (207.97.227.239)' can't be established.
- RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
- Are you sure you want to continue connecting (yes/no)? y
- Please type 'yes' or 'no': yes
- Warning: Permanently added 'github.com,207.97.227.239' (RSA) to the list of known hosts.
- Enter passphrase for key '/home/dm/.ssh/id_rsa':
- Hi shtrih! You've successfully authenticated, but GitHub does not provide shell access.
- dm@ts:~/.ssh$ cd /media/http/local
- dm@ts:/media/http/local$ cd test
- dm@ts:/media/http/local/test$ git push -u origin master
- Enter passphrase for key '/home/dm/.ssh/id_rsa':
- Counting objects: 3, done.
- Writing objects: 100% (3/3), 198 bytes, done.
- Total 3 (delta 0), reused 0 (delta 0)
- To git@github.com:shtrih/test.git
- * [new branch] master -> master
- Branch master set up to track remote branch master from origin.
- dm@ts:/media/http/local/test$ git pull
- Enter passphrase for key '/home/dm/.ssh/id_rsa':
- Already up-to-date.
- dm@ts:/media/http/local/test$ git status
- # On branch master
- # Changed but not updated:
- # (use "git add <file>..." to update what will be committed)
- # (use "git checkout -- <file>..." to discard changes in working directory)
- #
- # modified: README
- #
- no changes added to commit (use "git add" and/or "git commit -a")
- dm@ts:/media/http/local/test$ git diff
- diff --git a/README b/README
- index e69de29..90b67dd 100644
- --- a/README
- +++ b/README
- @@ -0,0 +1 @@
- +Test.
- dm@ts:/media/http/local/test$ git commit -a -m "Added Test"
- [master bfc4459] Added Test
- 1 files changed, 1 insertions(+), 0 deletions(-)
- dm@ts:/media/http/local/test$ git push origin master
- Enter passphrase for key '/home/dm/.ssh/id_rsa':
- Counting objects: 5, done.
- Writing objects: 100% (3/3), 253 bytes, done.
- Total 3 (delta 0), reused 0 (delta 0)
- To git@github.com:shtrih/test.git
- 13b61c4..bfc4459 master -> master
Add Comment
Please, Sign In to add comment