Git bash
-
Upload
sanyam-arora -
Category
Career
-
view
7 -
download
2
Transcript of Git bash
Git bashWelcome to Git (version 1.9.5-preview20150319)
Run 'git help git' to display the help index.
Run 'git help <command>' to display help for specific commands.
anchal.chadha@BSSDT018 ~
$ pwd
/c/Users/anchal.chadha
anchal.chadha@BSSDT018 ~
$ mkdir .ssh
anchal.chadha@BSSDT018 ~
$ cd .ssh
anchal.chadha@BSSDT018 ~/.ssh
$ ssh-keygen -t rsa -C "[email protected]"
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/anchal.chadha/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /c/Users/anchal.chadha/.ssh/id_rsa.
Your public key has been saved in /c/Users/anchal.chadha/.ssh/id_rsa.pub.
The key fingerprint is:
d3:5b:5b:1f:f7:cc:c4:8c:dc:e1:7b:e0:f6:0c:4d:15 [email protected]
The key's randomart image is:
+--[ RSA 2048]----+
| E |
| .|
| ..|
| . ..=o|
| S . . =oB|
| . o + O=|
| . . +.B|
| . +.|
| o|
+-----------------+
anchal.chadha@BSSDT018 ~/.ssh
$ ssh -v [email protected]
OpenSSH_6.6.1, OpenSSL 1.0.1m 19 Mar 2015
debug1: Connecting to github.com [192.30.252.131] port 22.
debug1: Connection established.
debug1: identity file /c/Users/anchal.chadha/.ssh/id_rsa type 1
debug1: identity file /c/Users/anchal.chadha/.ssh/id_rsa-cert type -1
debug1: identity file /c/Users/anchal.chadha/.ssh/id_dsa type -1
debug1: identity file /c/Users/anchal.chadha/.ssh/id_dsa-cert type -1
debug1: identity file /c/Users/anchal.chadha/.ssh/id_ecdsa type -1
debug1: identity file /c/Users/anchal.chadha/.ssh/id_ecdsa-cert type -1
debug1: identity file /c/Users/anchal.chadha/.ssh/id_ed25519 type -1
debug1: identity file /c/Users/anchal.chadha/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.6.1
debug1: Remote protocol version 2.0, remote software version libssh-0.6.0
debug1: no match: libssh-0.6.0
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-sha1 none
debug1: kex: client->server aes128-ctr hmac-sha1 none
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: RSA 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48
The authenticity of host 'github.com (192.30.252.131)' 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)? yes
Warning: Permanently added 'github.com,192.30.252.131' (RSA) to the list of know
n hosts.
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /c/Users/anchal.chadha/.ssh/id_rsa
debug1: Authentications that can continue: publickey
debug1: Trying private key: /c/Users/anchal.chadha/.ssh/id_dsa
debug1: Trying private key: /c/Users/anchal.chadha/.ssh/id_ecdsa
debug1: Trying private key: /c/Users/anchal.chadha/.ssh/id_ed25519
debug1: No more authentication methods to try.
Permission denied (publickey).
anchal.chadha@BSSDT018 ~/.ssh
$ cd ..
anchal.chadha@BSSDT018 ~
$ cd ..
anchal.chadha@BSSDT018 /c/Users
$ cd..
sh.exe": cd..: command not found
anchal.chadha@BSSDT018 /c/Users
$ cd ..
anchal.chadha@BSSDT018 /c
$ cd C:\\anchal\\Sanyam\\ex2
anchal.chadha@BSSDT018 /c/anchal/Sanyam/ex2
$ pwd
/c/anchal/Sanyam/ex2
anchal.chadha@BSSDT018 /c/anchal/Sanyam/ex2
$ git init
Initialized empty Git repository in c:/anchal/Sanyam/ex2/.git/
anchal.chadha@BSSDT018 /c/anchal/Sanyam/ex2 (master)
$ Git add .
anchal.chadha@BSSDT018 /c/anchal/Sanyam/ex2 (master)
$ git commit -m "first commit"
[master (root-commit) fdfb91e] first commit
Committer: unknown <[email protected]>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly:
git config --global user.name "Your Name"
git config --global user.email [email protected]
After doing this, you may fix the identity used for this commit with:
git commit --amend --reset-author
5 files changed, 51 insertions(+)
create mode 100644 .classpath
create mode 100644 .project
create mode 100644 .settings/org.eclipse.jdt.core.prefs
create mode 100644 bin/ex2/testfile.class
create mode 100644 src/ex2/testfile.java
anchal.chadha@BSSDT018 /c/anchal/Sanyam/ex2 (master)
$ git remote add origin https://github.com/AnchalChadha/NewRep.git
anchal.chadha@BSSDT018 /c/anchal/Sanyam/ex2 (master)
$ git push -u origin master
Username for 'https://github.com':
Password for 'https://github.com':
remote: Anonymous access to AnchalChadha/NewRep.git denied.
fatal: Authentication failed for 'https://github.com/AnchalChadha/NewRep.git/'
anchal.chadha@BSSDT018 /c/anchal/Sanyam/ex2 (master)
$
anchal.chadha@BSSDT018 /c/anchal/Sanyam/ex2 (master)
$
anchal.chadha@BSSDT018 /c/anchal/Sanyam/ex2 (master)
$
anchal.chadha@BSSDT018 /c/anchal/Sanyam/ex2 (master)
$ git push -u origin master
Username for 'https://github.com': anchalchadha
Password for 'https://[email protected]':
Counting objects: 12, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (8/8), done.
Writing objects: 100% (12/12), 1.95 KiB | 0 bytes/s, done.
Total 12 (delta 0), reused 0 (delta 0)
To https://github.com/AnchalChadha/NewRep.git
* [new branch] master -> master
Branch master set up to track remote branch master from origin.
anchal.chadha@BSSDT018 /c/anchal/Sanyam/ex2 (master)
$