diff --git a/README.txt b/README.txt index 7b8166e..b3d9d97 100644 --- a/README.txt +++ b/README.txt @@ -1,7 +1,21 @@ -Last login: Sun Mar 24 13:32:14 on ttys000 + 2 ґ Git + + +: .. +: -03-23 +: .. + +: OS X. + +1. C lab02 Git Bash dmitrijantonov@MacBook-Air-Dmitrij ~ % cd desktop dmitrijantonov@MacBook-Air-Dmitrij desktop % cd lab02 + +2. ls : dmitrijantonov@MacBook-Air-Dmitrij lab02 % ls + +3. , project, cd : + dmitrijantonov@MacBook-Air-Dmitrij lab02 % mkdir alice dmitrijantonov@MacBook-Air-Dmitrij lab02 % mkdir bob dmitrijantonov@MacBook-Air-Dmitrij lab02 % cd alice @@ -9,13 +23,32 @@ dmitrijantonov@MacBook-Air-Dmitrij alice % mkdir project dmitrijantonov@MacBook-Air-Dmitrij alice % cd project dmitrijantonov@MacBook-Air-Dmitrij project % cd .. dmitrijantonov@MacBook-Air-Dmitrij alice % cd project + +4. : + dmitrijantonov@MacBook-Air-Dmitrij project % git init Initialized empty Git repository in /Users/dmitrijantonov/Desktop/lab02/alice/project/.git/ + +5. git. git main + +dmitrijantonov@MacBook-Air-Dmitrij project % git status +On branch main + +6. , git + dmitrijantonov@MacBook-Air-Dmitrij project % ls -A .git + +7. , : + dmitrijantonov@MacBook-Air-Dmitrij project % git config user.name 'Alice (AntonovDA)' dmitrijantonov@MacBook-Air-Dmitrij project % git config user.email 'AntonovDAn@mpei.ru' + +8. git main2.cpp ( , ) + dmitrijantonov@MacBook-Air-Dmitrij project % git add main2.cpp +9. ( ) + dmitrijantonov@MacBook-Air-Dmitrij project % git status On branch main @@ -31,6 +64,8 @@ Untracked files: main2 main2.dSYM/ +10. main2.cpp + dmitrijantonov@MacBook-Air-Dmitrij project % git commit -m 'code: ' [main (root-commit) 9896924] code: 1 file changed, 9 insertions(+) @@ -40,6 +75,9 @@ dmitrijantonov@MacBook-Air-Dmitrij project % git commit -m 'build: add projecct [main bad78bc] build: add projecct file 1 file changed, 9 insertions(+) create mode 100644 project.cbp + +11. main2.cpp. , : new file: main2.cpp. - modified: main2.cpp + dmitrijantonov@MacBook-Air-Dmitrij project % git status On branch main Changes not staged for commit: @@ -54,46 +92,28 @@ Untracked files: main2.dSYM/ no changes added to commit (use "git add" and/or "git commit -a") + +12 ). 1 : , + dmitrijantonov@MacBook-Air-Dmitrij project % git add main2.cpp dmitrijantonov@MacBook-Air-Dmitrij project % git commit -m "..." [main 9f6cd71] ... 1 file changed, 3 insertions(+), 3 deletions(-) + +12 ). 2 , + dmitrijantonov@MacBook-Air-Dmitrij project % git add -u dmitrijantonov@MacBook-Air-Dmitrij project % git commit -m "..." [main 6d4ba94] ... 1 file changed, 4 insertions(+) + +12 ). 3 dmitrijantonov@MacBook-Air-Dmitrij project % git commit -a -m "code: add sum of a,b" [main 051a5a1] code: add sum of a,b 1 file changed, 3 insertions(+), 1 deletion(-) -dmitrijantonov@MacBook-Air-Dmitrij project % git status -On branch main -Untracked files: - (use "git add ..." to include in what will be committed) - .DS_Store - main2 - main2.dSYM/ - -nothing added to commit but untracked files present (use "git add" to track) -dmitrijantonov@MacBook-Air-Dmitrij project % git status -On branch main -Untracked files: - (use "git add ..." to include in what will be committed) - .DS_Store - .gitignore - main2 - main2.dSYM/ -nothing added to commit but untracked files present (use "git add" to track) -dmitrijantonov@MacBook-Air-Dmitrij project % git status -On branch main -Untracked files: - (use "git add ..." to include in what will be committed) - .DS_Store - .gitignore - main2 - main2.dSYM/ +13. . -nothing added to commit but untracked files present (use "git add" to track) dmitrijantonov@MacBook-Air-Dmitrij project % git status On branch main Untracked files: @@ -119,54 +139,18 @@ main2 main2.cpp main2.dSYM project.cbp dmitrijantonov@MacBook-Air-Dmitrij project % ls -A .DS_Store .gitignore main2.cpp project.cbp .git main2 main2.dSYM -dmitrijantonov@MacBook-Air-Dmitrij project % git status -On branch main -Untracked files: - (use "git add ..." to include in what will be committed) - .DS_Store - .gitignore - main2 - main2.dSYM/ -nothing added to commit but untracked files present (use "git add" to track) -dmitrijantonov@MacBook-Air-Dmitrij project % git status -On branch main -Untracked files: - (use "git add ..." to include in what will be committed) - .DS_Store - .gitignore - main2 - main2.dSYM/ -nothing added to commit but untracked files present (use "git add" to track) +14. .gitignore + dmitrijantonov@MacBook-Air-Dmitrij project % git add .gitignore dmitrijantonov@MacBook-Air-Dmitrij project % git commit -m 'git: ignoreted files' [main ae9e215] git: ignoreted files 1 file changed, 1 insertion(+) create mode 100644 .gitignore -dmitrijantonov@MacBook-Air-Dmitrij project % git status -On branch main -Untracked files: - (use "git add ..." to include in what will be committed) - .DS_Store - main2 - main2.dSYM/ - -nothing added to commit but untracked files present (use "git add" to track) -dmitrijantonov@MacBook-Air-Dmitrij project % git status -On branch main -Changes not staged for commit: - (use "git add ..." to update what will be committed) - (use "git restore ..." to discard changes in working directory) - modified: .gitignore -Untracked files: - (use "git add ..." to include in what will be committed) - .DS_Store - main2 - main2.dSYM/ +15. -no changes added to commit (use "git add" and/or "git commit -a") dmitrijantonov@MacBook-Air-Dmitrij project % git log commit ae9e215dfc2d2d4b7293756374f86a6a98d96f85 (HEAD -> main) Author: Alice (AntonovDA) @@ -191,6 +175,8 @@ Author: Alice (AntonovDA) Date: Sun Mar 24 14:49:31 2024 +0300 ... +15 ) , + dmitrijantonov@MacBook-Air-Dmitrij project % git log --stat commit ae9e215dfc2d2d4b7293756374f86a6a98d96f85 (HEAD -> main) Author: Alice (AntonovDA) @@ -215,6 +201,9 @@ Author: Alice (AntonovDA) Date: Sun Mar 24 14:50:50 2024 +0300 ... + +15 ). graph + dmitrijantonov@MacBook-Air-Dmitrij project % git log --oneline --decorate ae9e215 (HEAD -> main) git: ignoreted files 051a5a1 code: add sum of a,b @@ -229,6 +218,9 @@ dmitrijantonov@MacBook-Air-Dmitrij project % git log --oneline --decorate --all * 9f6cd71 ... * bad78bc build: add projecct file * 9896924 code: + +15 ). main2.cpp + dmitrijantonov@MacBook-Air-Dmitrij project % git log -- main2.cpp commit 051a5a1ec2613fa76bdebad3c00859fe09a98a30 Author: Alice (AntonovDA) @@ -253,6 +245,9 @@ Author: Alice (AntonovDA) Date: Sun Mar 24 14:44:52 2024 +0300 code: + +15 ) , code + dmitrijantonov@MacBook-Air-Dmitrij project % git log --grep "code:" commit 051a5a1ec2613fa76bdebad3c00859fe09a98a30 Author: Alice (AntonovDA) @@ -277,8 +272,9 @@ Author: Alice (AntonovDA) Date: Sun Mar 24 14:47:54 2024 +0300 build: add projecct file -dmitrijantonov@MacBook-Air-Dmitrij project % git show -zsh: parse error near `\n' + +16 ). ( ) + dmitrijantonov@MacBook-Air-Dmitrij project % git show main commit ae9e215dfc2d2d4b7293756374f86a6a98d96f85 (HEAD -> main) Author: Alice (AntonovDA) @@ -294,6 +290,9 @@ index 0000000..5a12c2a @@ -0,0 +1 @@ +.exe \ No newline at end of file + +16 ). + dmitrijantonov@MacBook-Air-Dmitrij project % git show HEAD commit ae9e215dfc2d2d4b7293756374f86a6a98d96f85 (HEAD -> main) Author: Alice (AntonovDA) @@ -309,12 +308,14 @@ index 0000000..5a12c2a @@ -0,0 +1 @@ +.exe \ No newline at end of file -dmitrijantonov@MacBook-Air-Dmitrij project % git show d2e8af -fatal: ambiguous argument 'd2e8af': unknown revision or path not in the working tree. -Use '--' to separate paths from revisions, like this: -'git [...] -- [...]' + +16 ). . + dmitrijantonov@MacBook-Air-Dmitrij project % git show 5a12c2a .exe + +16 ). . + dmitrijantonov@MacBook-Air-Dmitrij project % git show HEAD~1 commit 051a5a1ec2613fa76bdebad3c00859fe09a98a30 Author: Alice (AntonovDA) @@ -359,6 +360,8 @@ index 9e875c9..0400acb 100644 return 0; +17). . + dmitrijantonov@MacBook-Air-Dmitrij project % git diff diff --git a/.gitignore b/.gitignore index 5a12c2a..a0a0033 100644 @@ -383,6 +386,8 @@ index 0400acb..987e7c5 100644 + << "A * B = " << a * b ; +17 ). , + + dmitrijantonov@MacBook-Air-Dmitrij project % git diff HEAD~2 diff --git a/.gitignore b/.gitignore new file mode 100644 @@ -406,109 +411,25 @@ index 9e875c9..987e7c5 100644 + << "A - B = " << a - b << '\n' + << "A * B = " << a * b ; + - -dmitrijantonov@MacBook-Air-Dmitrij project % git diff HEAD~2 HEAD -diff --git a/.gitignore b/.gitignore -new file mode 100644 -index 0000000..5a12c2a ---- /dev/null -+++ b/.gitignore -@@ -0,0 +1 @@ -+.exe -\ No newline at end of file -diff --git a/main2.cpp b/main2.cpp -index 9e875c9..0400acb 100644 ---- a/main2.cpp -+++ b/main2.cpp -@@ -6,7 +6,9 @@ int main() - cout << "Enter A and B: "; - int a, b; - cin >> a >> b; -- cout << "A + B = " << a + b << '\n'; -+ cout << "A + B = " << a + b << '\n' -+ << "A - B = " << a - b << '\n'; -+ - - return 0; - -dmitrijantonov@MacBook-Air-Dmitrij project % git diff HEAD~1 HEAD -diff --git a/.gitignore b/.gitignore -new file mode 100644 -index 0000000..5a12c2a ---- /dev/null -+++ b/.gitignore -@@ -0,0 +1 @@ -+.exe -\ No newline at end of file -dmitrijantonov@MacBook-Air-Dmitrij project % git diff HEAD~1 HEAD~3 -diff --git a/main2.cpp b/main2.cpp -index 0400acb..e76b1a2 100644 ---- a/main2.cpp -+++ b/main2.cpp -@@ -6,10 +6,4 @@ int main() - cout << "Enter A and B: "; - int a, b; - cin >> a >> b; -- cout << "A + B = " << a + b << '\n' -- << "A - B = " << a - b << '\n'; -- -- -- return 0; -- - } -\ No newline at end of file + +18). . + dmitrijantonov@MacBook-Air-Dmitrij project % git commit -a -m "code: cout product' dquote> " [main 294564d] code: cout product' 2 files changed, 4 insertions(+), 2 deletions(-) -dmitrijantonov@MacBook-Air-Dmitrij project % git status -On branch main -Untracked files: - (use "git add ..." to include in what will be committed) - .DS_Store - main2 - main2.dSYM/ -nothing added to commit but untracked files present (use "git add" to track) -dmitrijantonov@MacBook-Air-Dmitrij project % git commit -a -m "code: cout product" -On branch main -Untracked files: - (use "git add ..." to include in what will be committed) - .DS_Store - main2 - main2.dSYM/ +19) . HEAD~1 . , --hard . -nothing added to commit but untracked files present (use "git add" to track) -dmitrijantonov@MacBook-Air-Dmitrij project % git add -u -dmitrijantonov@MacBook-Air-Dmitrij project % git commut -m " code: cout product" -git: 'commut' is not a git command. See 'git --help'. +dmitrijantonov@MacBook-Air-Dmitrij project % git reset --hard HEAD~1 +HEAD is now at ae9e215 git: ignoreted files -The most similar command is - commit -dmitrijantonov@MacBook-Air-Dmitrij project % git add -u -dmitrijantonov@MacBook-Air-Dmitrij project % git commit -m " code: cout prouct" -On branch main -Untracked files: - (use "git add ..." to include in what will be committed) - .DS_Store - main2 - main2.dSYM/ +19 ). . ( ) -nothing added to commit but untracked files present (use "git add" to track) -dmitrijantonov@MacBook-Air-Dmitrij project % git add -u -dmitrijantonov@MacBook-Air-Dmitrij project % git commit -m " code: cout prouct" +dmitrijantonov@MacBook-Air-Dmitrij project % git checkout HEAD -- main2.cpp -On branch main -Untracked files: - (use "git add ..." to include in what will be committed) - .DS_Store - main2 - main2.dSYM/ +20) . -nothing added to commit but untracked files present (use "git add" to track) -dmitrijantonov@MacBook-Air-Dmitrij project % git reset --hard HEAD~1 -HEAD is now at ae9e215 git: ignoreted files -dmitrijantonov@MacBook-Air-Dmitrij project % git checkout HEAD -- main2.cpp dmitrijantonov@MacBook-Air-Dmitrij project % ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/Users/dmitrijantonov/.ssh/id_rsa): @@ -535,26 +456,27 @@ The key's randomart image is: | o B.B =.o | | .=E*oo *o | +----[SHA256]-----+ -dmitrijantonov@MacBook-Air-Dmitrij project % eval $ (ssh-agent -s) -zsh: unknown file attribute: h + +21) . + dmitrijantonov@MacBook-Air-Dmitrij project % eval $(ssh-agent -s) Agent pid 11202 + +22) + dmitrijantonov@MacBook-Air-Dmitrij project % ssh-add Enter passphrase for /Users/dmitrijantonov/.ssh/id_rsa: Identity added: /Users/dmitrijantonov/.ssh/id_rsa (dmitrijantonov@MacBook-Air-Dmitrij.local) -dmitrijantonov@MacBook-Air-Dmitrij project % cat ~/.ssh/id_ed25519.pub -cat: /Users/dmitrijantonov/.ssh/id_ed25519.pub: No such file or directory -dmitrijantonov@MacBook-Air-Dmitrij project % cat ~/.ssh/id_ed25519.pub -cat: /Users/dmitrijantonov/.ssh/id_ed25519.pub: No such file or directory -dmitrijantonov@MacBook-Air-Dmitrij project % ssh-add -Enter passphrase for /Users/dmitrijantonov/.ssh/id_rsa: -Identity added: /Users/dmitrijantonov/.ssh/id_rsa (dmitrijantonov@MacBook-Air-Dmitrij.local) -dmitrijantonov@MacBook-Air-Dmitrij project % cat ~/.ssh/id_25519.pub -cat: /Users/dmitrijantonov/.ssh/id_25519.pub: No such file or directory + +23) + dmitrijantonov@MacBook-Air-Dmitrij project % cat ~/.ssh/id_rsa.pub ssh-rsa ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDPxaVsyW3e2l1H9OeKsLDbnwAMsXdoHZKT/oCkQz2Y6l731yNQFqY5SO6FShPGPrXNDj5EpoNmb2XWK+dksaWsTNQOmkXbIlk8ld08jJdAFPpgm+IOEYT/mTGjzB912bkQnhvZrTIuYM7b33Y2VPdVLEK/W4hu1jZiHRZqGzdS0yX2pZFiDjso5jDHYXZNMMkjeGeWCo3dHEH176qJW2zxEiv47yvNJDbvWpGxlfzGYK9hjBBa6wF/BhmlZUA+kBvySOQTNTQaoduEozSnWm+0nx6+7yYZnxjIQ6hkO2DiYCCdhb18TM1uWOp9Gt8j7/kV8EO/9H7BNWjvE30HjjojZj1pCaOIf9kQFMxaviYOZYBCAS6lq7Qe0M15rc7o20os6drIe0Lo1txaXnemxBKrlt1rXMu+4gMuSruQiYWQvxuiYwYBoQ/CNCrfK7pcwmHKAdRuRRD/99yWrArkcUSUhCvKN3ygEPjZLmvDY3cpf+0I0rYaX1JKM57GfIeNv0U= dmitrijantonov@MacBook-Air-Dmitrij.local zsh: command not found: ssh-rsa + +24) + dmitrijantonov@MacBook-Air-Dmitrij project % git remote add origin git@uit.mpei.ru:AntonovDAn/cs-lab002.git dmitrijantonov@MacBook-Air-Dmitrij project % git push -u origin main ssh: connect to host uit.mpei.ru port 22: Operation timed out @@ -562,279 +484,56 @@ fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. -dmitrijantonov@MacBook-Air-Dmitrij project % git remote add origin git@uit.mpei.ru:AntonovDAn/cs-lab002.git -error: remote origin already exists. -dmitrijantonov@MacBook-Air-Dmitrij project % git push -u origin main -^[[B^[[Dssh: connect to host uit.mpei.ru port 22: Operation timed out -fatal: Could not read from remote repository. -Please make sure you have the correct access rights -and the repository exists. -dmitrijantonov@MacBook-Air-Dmitrij project % git remote add origin git@uit.mpei.ru:AntonovDAn/cs-lab002.git -error: remote origin already exists. +25) SSH HTTP +dmitrijantonov@MacBook-Air-Dmitrij project % git remote set-url origin http://uit.mpei.ru/git/AntonovDAn/cs-lab2.git dmitrijantonov@MacBook-Air-Dmitrij project % git push -u origin main - -q -q -q -q -q -q -q -q -qcc -git push -u origin main -git push -u origin main - - - - - - - - - - +Enumerating objects: 17, done. +Counting objects: 100% (17/17), done. +Delta compression using up to 4 threads +Compressing objects: 100% (15/15), done. +Writing objects: 100% (17/17), 1.74 KiB | 445.00 KiB/s, done. +Total 17 (delta 2), reused 0 (delta 0), pack-reused 0 +remote: . Processing 1 references +remote: Processed 1 references in total +To http://uit.mpei.ru/git/AntonovDAn/cs-lab2.git + * [new branch] main -> main +branch 'main' set up to track 'origin/main'. +26) +dmitrijantonov@MacBook-Air-Dmitrij project % git remote -v +origin http://uit.mpei.ru/git/AntonovDAn/cs-lab2.git (fetch) +origin http://uit.mpei.ru/git/AntonovDAn/cs-lab2.git (push) +27) +dmitrijantonov@MacBook-Air-Dmitrij project % cd .. +dmitrijantonov@MacBook-Air-Dmitrij alice % cd .. +dmitrijantonov@MacBook-Air-Dmitrij lab02 % cd bob +dmitrijantonov@MacBook-Air-Dmitrij bob % git clone http://uit.mpei.ru/git/AntonovDAn/cs-lab2.git project +Cloning into 'project'... +remote: Enumerating objects: 17, done. +remote: Counting objects: 100% (17/17), done. +remote: Compressing objects: 100% (15/15), done. +remote: Total 17 (delta 2), reused 0 (delta 0), pack-reused 0 +Receiving objects: 100% (17/17), done. +Resolving deltas: 100% (2/2), done. +dmitrijantonov@MacBook-Air-Dmitrij bob % cd project +dmitrijantonov@MacBook-Air-Dmitrij project % git config user.name 'Bob (AntonovDA)' +dmitrijantonov@MacBook-Air-Dmitrij project % git config user.email 'AntonovDAn@mpei.ru' +dmitrijantonov@MacBook-Air-Dmitrij project % git commit -m 'code: ' +On branch main +Your branch is up to date with 'origin/main'. +Changes not staged for commit: + (use "git add ..." to update what will be committed) + (use "git restore ..." to discard changes in working directory) + modified: main2.cpp - -pa[fldv -stop -dd -git remote add origin git@uit.mpei.ru:AntonovDAn/cs-lab002.git -git remote add origin git@uit.mpei.ru:AntonovDAn/cs-lab002.git -git remote add origin git@uit.mpei.ru:AntonovDAn/cs-lab002.git -git remote add origin git@uit.mpei.ru:AntonovDAn/cs-lab002.git -git remote add origin git@uit.mpei.ru:AntonovDAn/cs-lab002.git -git remote add origin git@uit.mpei.ru:AntonovDAn/cs-lab002.gitgit remote add origin git@uit.mpei.ru:AntonovDAn/cs-lab002.git -git remote add origin git@uit.mpei.ru:AntonovDAn/cs-lab002.git -git remote add origin git@uit.mpei.ru:AntonovDAn/cs-lab002.git -git remote add origin git@uit.mpei.ru:AntonovDAn/cs-lab002.git -git remote add origin git@uit.mpei.ru:AntonovDAn/cs-lab002.git -git remote add origin git@uit.mpei.ru:AntonovDAn/cs-lab002.git -git remote add origin git@uit.mpei.ru:AntonovDAn/cs-lab002.git -git remote add origin git@uit.mpei.ru:AntonovDAn/cs-lab002.git -git remote add origin git@uit.mpei.ru:Assh: connect to host uit.mpei.ru port 22: Operation timed out -fatal: Could not read from remote repository. - -Please make sure you have the correct access rights -and the repository exists. -dmitrijantonov@MacBook-Air-Dmitrij project % -dmitrijantonov@MacBook-Air-Dmitrij project % q -zsh: command not found: q -dmitrijantonov@MacBook-Air-Dmitrij project % q -zsh: command not found: q -dmitrijantonov@MacBook-Air-Dmitrij project % q -zsh: command not found: q -dmitrijantonov@MacBook-Air-Dmitrij project % q -zsh: command not found: q -dmitrijantonov@MacBook-Air-Dmitrij project % q -zsh: command not found: q -dmitrijantonov@MacBook-Air-Dmitrij project % q -zsh: command not found: q -dmitrijantonov@MacBook-Air-Dmitrij project % q -zsh: command not found: q -dmitrijantonov@MacBook-Air-Dmitrij project % q -zsh: command not found: q -dmitrijantonov@MacBook-Air-Dmitrij project % qcc -zsh: command not found: qcc -dmitrijantonov@MacBook-Air-Dmitrij project % git push -u origin main -git push -u origin main - - - - - - - - - - - - - - - - - -pa[fldv -stop -dd -git remote add origin git@uit.mpei.ru:AntonovDAn/cs-lab002.git -git remote add origin git@uit.mpei.ru:AntonovDAn/cs-lab002.git -git remote add origin git@uit.mpei.ru:AntonovDAn/cs-lab002.git -git remote add origin git@uit.mpei.ru:AntonovDAn/cs-lab002.git -git remote add origin git@uit.mpei.ru:AntonovDAn/cs-lab002.git -git remote add origin git@uit.mpei.ru:AntonovDAn/cs-lab002.gitgit remote add origin git@uit.mpei.ru:AntonovDAn/cs-lab002.git -git remote add origin git@uit.mpei.ru:AntonovDAn/cs-lab002.git -git remote add origin git@uit.mpei.ru:AntonovDAn/cs-lab002.git -git remote add origin git@uit.mpei.ru:AntonovDAn/cs-lab002.git -git remote add origin git@uit.mpei.ru:AntonovDAn/cs-lab002.git -git remote add origin git@uit.mpei.ru:AntonovDAn/cs-lab002.git -git remote add origin git@uit.mpei.ru:AntonovDAn/cs-lab002.git -git remote add origin git@uit.mpei.ru:AntonovDAn/cs-lab002.git -git remote add origin git@uit.mpei.ru:AntonovDAn/cs- -git remote add origin - - - - - - - - - - - - -/////Last login: Sun Mar 24 16:22:56 on ttys000 -dmitrijantonov@MacBook-Air-Dmitrij ~ % cd desktop -dmitrijantonov@MacBook-Air-Dmitrij desktop % cd lab02 -dmitrijantonov@MacBook-Air-Dmitrij lab02 % cd alice -dmitrijantonov@MacBook-Air-Dmitrij alice % cd project -dmitrijantonov@MacBook-Air-Dmitrij project % git remote add origin git@uit.mpei.ru:AntonovDAn/cs-lab02.gigit remote add origin git@uit.mpei.ru:AntonovDAn/cs-lab2.gitt -usage: git remote add [] - - -f, --fetch fetch the remote branches - --tags import all tags and associated objects when fetching - or do not fetch any tag at all (--no-tags) - -t, --track branch(es) to track - -m, --master - master branch - --mirror[=(push|fetch)] - set up remote as a mirror to push to or fetch from - -dmitrijantonov@MacBook-Air-Dmitrij project % git remote set-url origin http://uit.mpei.ru/git/AntonovDAn/cs-lab2.git -dmitrijantonov@MacBook-Air-Dmitrij project % git remote add origin git@uit.mpei.ru:AntonovDAn/cs-lab2.git -error: remote origin already exists. -dmitrijantonov@MacBook-Air-Dmitrij project % git remote add origin git@uit.mpei.ru:AntonovDAn/cs-lab2.git -error: remote origin already exists. -dmitrijantonov@MacBook-Air-Dmitrij project % git remote add origin git@uit.mpei.ru:AntonovDAn/cs-lab2.git -error: remote origin already exists. -dmitrijantonov@MacBook-Air-Dmitrij project % git push -u origin main2 -error: src refspec main2 does not match any -error: failed to push some refs to 'http://uit.mpei.ru/git/AntonovDAn/cs-lab2.git' -dmitrijantonov@MacBook-Air-Dmitrij project % git remote add origin git@uit.mpei.ru:AntonovDAn/cs-lab2.git -error: remote origin already exists. -dmitrijantonov@MacBook-Air-Dmitrij project % git push -u origin main2 -error: src refspec main2 does not match any -error: failed to push some refs to 'http://uit.mpei.ru/git/AntonovDAn/cs-lab2.git' -dmitrijantonov@MacBook-Air-Dmitrij project % git remote set-url origin http://uit.mpei.ru/git/AntonovDAn/cs-lab2.git -dmitrijantonov@MacBook-Air-Dmitrij project % git push -u origin main2 -error: src refspec main2 does not match any -error: failed to push some refs to 'http://uit.mpei.ru/git/AntonovDAn/cs-lab2.git' -dmitrijantonov@MacBook-Air-Dmitrij project % git remote set-url origin http://uit.mpei.ru/git/AntonovDAn/cs-lab2.git -dmitrijantonov@MacBook-Air-Dmitrij project % git push -u origin main2 -error: src refspec main2 does not match any -error: failed to push some refs to 'http://uit.mpei.ru/git/AntonovDAn/cs-lab2.git' -dmitrijantonov@MacBook-Air-Dmitrij project % git remote add origin http://uit.mpei.ru/git/AntonovDAn/cs-lab2.git -error: remote origin already exists. -dmitrijantonov@MacBook-Air-Dmitrij project % git push -u origin mainw -error: src refspec mainw does not match any -error: failed to push some refs to 'http://uit.mpei.ru/git/AntonovDAn/cs-lab2.git' -dmitrijantonov@MacBook-Air-Dmitrij project % git push -u origin main2 -error: src refspec main2 does not match any -error: failed to push some refs to 'http://uit.mpei.ru/git/AntonovDAn/cs-lab2.git' -dmitrijantonov@MacBook-Air-Dmitrij project % git remote set-url origin http://uit.mpei.ru/git/AntonovDAn/cs-lab2.git -dmitrijantonov@MacBook-Air-Dmitrij project % git remote add origin http://uit.mpei.ru/git/AntonovDAn/cs-lab2.git -error: remote origin already exists. -dmitrijantonov@MacBook-Air-Dmitrij project % git push -u origin main -Enumerating objects: 17, done. -Counting objects: 100% (17/17), done. -Delta compression using up to 4 threads -Compressing objects: 100% (15/15), done. -Writing objects: 100% (17/17), 1.74 KiB | 445.00 KiB/s, done. -Total 17 (delta 2), reused 0 (delta 0), pack-reused 0 -remote: . Processing 1 references -remote: Processed 1 references in total -To http://uit.mpei.ru/git/AntonovDAn/cs-lab2.git - * [new branch] main -> main -branch 'main' set up to track 'origin/main'. -dmitrijantonov@MacBook-Air-Dmitrij project % git remote -v -origin http://uit.mpei.ru/git/AntonovDAn/cs-lab2.git (fetch) -origin http://uit.mpei.ru/git/AntonovDAn/cs-lab2.git (push) -dmitrijantonov@MacBook-Air-Dmitrij project % git clone -fatal: You must specify a repository to clone. - -usage: git clone [] [--] [] - - -v, --verbose be more verbose - -q, --quiet be more quiet - --progress force progress reporting - --reject-shallow don't clone shallow repository - -n, --no-checkout don't create a checkout - --bare create a bare repository - --mirror create a mirror repository (implies bare) - -l, --local to clone from a local repository - --no-hardlinks don't use local hardlinks, always copy - -s, --shared setup as shared repository - --recurse-submodules[=] - initialize submodules in the clone - --recursive ... alias of --recurse-submodules - -j, --jobs number of submodules cloned in parallel - --template - directory from which templates will be used - --reference reference repository - --reference-if-able - reference repository - --dissociate use --reference only while cloning - -o, --origin use instead of 'origin' to track upstream - -b, --branch - checkout instead of the remote's HEAD - -u, --upload-pack - path to git-upload-pack on the remote - --depth create a shallow clone of that depth - --shallow-since