shrey@Shreyash MINGW64 /f/gittutorial (master)
$ git status
On branch master
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: note.js
modified: noteApp.html
no changes added to commit (use "git add" and/or "git commit -a")
shrey@Shreyash MINGW64 /f/gittutorial (master)
$ git add .
shrey@Shreyash MINGW64 /f/gittutorial (master)
$ git status
On branch master
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
modified: note.js
modified: noteApp.html
shrey@Shreyash MINGW64 /f/gittutorial (master)
$ git commit -m "few change don't worrry"
[master 11f24d0] few change don't worrry
2 files changed, 2 insertions(+), 2 deletions(-)
shrey@Shreyash MINGW64 /f/gittutorial (master)
$ git status
On branch master
nothing to commit, working tree clean
shrey@Shreyash MINGW64 /f/gittutorial (master)
$ git remote
shrey@Shreyash MINGW64 /f/gittutorial (master)
$ git remote add origin <path>
shrey@Shreyash MINGW64 /f/gittutorial (master)
$ git remote
origin
shrey@Shreyash MINGW64 /f/gittutorial (master)
$ git remote -v
origin <path>
origin <path>
shrey@Shreyash MINGW64 /f/gittutorial (master)
$ git push -u origin master
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
shrey@Shreyash MINGW64 /f/gittutorial (master)
$ $ ssh-keygen -t ed25519 -C "shreyashkolhe2001@gmail.com"
bash: $: command not found
shrey@Shreyash MINGW64 /f/gittutorial (master)
$ ssh-keygen -t ed25519 -C "shreyashkolhe2001@gmail.com"
Generating public/private ed25519 key pair.
The key's randomart image is:
+--[ED25519 256]--+
|=. oo.. |
|=o. .. . |
|B= ooo E |
|++= Bo . |
|*=.+o.+ S |
|+++..... o |
|Oo ..o |
|O+. .o |
|++ .. |
+----[SHA256]-----+
shrey@Shreyash MINGW64 /f/gittutorial (master)
$ eval "$(ssh-agent -s)"
Agent pid "id"
shrey@Shreyash MINGW64 /f/gittutorial (master)
$ ssh-add ~/.ssh/id_ed25519
Identity added: /c/Users/shrey/.ssh/id_ed25519 (shreyashkolhe2001@gmail.com)
shrey@Shreyash MINGW64 /f/gittutorial (master)
$ tail ~/.ssh/id_rsa.pub
tail: cannot open '/c/Users/shrey/.ssh/id_rsa.pub' for reading: No such file or directory
shrey@Shreyash MINGW64 /f/gittutorial (master)
$ git push -u origin master
Enumerating objects: 17, done.
Counting objects: 100% (17/17), done.
Delta compression using up to 4 threads
Compressing objects: 100% (16/16), done.
Writing objects: 100% (17/17), 3.49 KiB | 510.00 KiB/s, done.
Total 17 (delta 6), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (6/6), done.
To github.com:shreyash510/simplegit.git
* [new branch] master -> master
Branch 'master' set up to track remote branch 'master' from 'origin'.
shrey@Shreyash MINGW64 /f/gittutorial (master)
$ git status
On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean
shrey@Shreyash MINGW64 /f/gittutorial (master)
$ git status
On branch master
Your branch is up to date with 'origin/master'.
Untracked files:
(use "git add <file>..." to include in what will be committed)
this.txt.txt
nothing added to commit but untracked files present (use "git add" to track)
shrey@Shreyash MINGW64 /f/gittutorial (master)
$ git add .
shrey@Shreyash MINGW64 /f/gittutorial (master)
$ git commit -m "new txt"
[master 111d1c8] new txt
1 file changed, 1 insertion(+)
create mode 100644 this.txt.txt
shrey@Shreyash MINGW64 /f/gittutorial (master)
$ git push -u origin master
Enumerating objects: 4, done.
Counting objects: 100% (4/4), done.
Delta compression using up to 4 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 285 bytes | 142.00 KiB/s, done.
Total 3 (delta 1), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (1/1), completed with 1 local object.
To github.com:shreyash510/simplegit.git
11f24d0..111d1c8 master -> master
Branch 'master' set up to track remote branch 'master' from 'origin'.
Post a Comment