User@▒▒▒▒▒▒▒▒▒ MINGW64 ~/Desktop/lab02 $ ls User@▒▒▒▒▒▒▒▒▒ MINGW64 ~/Desktop/lab02 $ mkdir alice User@▒▒▒▒▒▒▒▒▒ MINGW64 ~/Desktop/lab02 $ mkdir bob User@▒▒▒▒▒▒▒▒▒ MINGW64 ~/Desktop/lab02 $ cd alice User@▒▒▒▒▒▒▒▒▒ MINGW64 ~/Desktop/lab02/alice $ mkdir project User@▒▒▒▒▒▒▒▒▒ MINGW64 ~/Desktop/lab02/alice $ cd project User@▒▒▒▒▒▒▒▒▒ MINGW64 ~/Desktop/lab02/alice/project $ cd .. User@▒▒▒▒▒▒▒▒▒ MINGW64 ~/Desktop/lab02/alice $ cd project User@▒▒▒▒▒▒▒▒▒ MINGW64 ~/Desktop/lab02/alice/project $ git init Initialized empty Git repository in C:/Users/User/Desktop/lab02/alice/project/.git/ User@▒▒▒▒▒▒▒▒▒ MINGW64 ~/Desktop/lab02/alice/project (master) $ git branch -m main User@▒▒▒▒▒▒▒▒▒ MINGW64 ~/Desktop/lab02/alice/project (main) $ ls -A .git/ User@▒▒▒▒▒▒▒▒▒ MINGW64 ~/Desktop/lab02/alice/project (main) $ git config user.name 'Alice (FadeevIS)' User@▒▒▒▒▒▒▒▒▒ MINGW64 ~/Desktop/lab02/alice/project (main) $ git config user.email 'FadeevIS@mpei.ru' User@▒▒▒▒▒▒▒▒▒ MINGW64 ~/Desktop/lab02/alice/project (main) $ git status On branch main No commits yet Untracked files: (use "git add ..." to include in what will be committed) main.cpp project.cbp nothing added to commit but untracked files present (use "git add" to track) User@▒▒▒▒▒▒▒▒▒ MINGW64 ~/Desktop/lab02/alice/project (main) $ git add main.cpp User@▒▒▒▒▒▒▒▒▒ MINGW64 ~/Desktop/lab02/alice/project (main) $ git status On branch main No commits yet Changes to be committed: (use "git rm --cached ..." to unstage) new file: main.cpp Untracked files: (use "git add ..." to include in what will be committed) project.cbp User@▒▒▒▒▒▒▒▒▒ MINGW64 ~/Desktop/lab02/alice/project (main) $ git commit -m 'code: заготовка программы' [main (root-commit) 758f7d7] code: заготовка программы 1 file changed, 9 insertions(+) create mode 100644 main.cpp User@▒▒▒▒▒▒▒▒▒ MINGW64 ~/Desktop/lab02/alice/project (main) $ git add project.cbp warning: in the working copy of 'project.cbp', LF will be replaced by CRLF the next time Git touches it User@▒▒▒▒▒▒▒▒▒ MINGW64 ~/Desktop/lab02/alice/project (main) $ git commit -m 'build: добавлен файл проекта' [main 2552572] build: добавлен файл проекта 1 file changed, 40 insertions(+) create mode 100644 project.cbp User@▒▒▒▒▒▒▒▒▒ MINGW64 ~/Desktop/lab02/alice/project (main) $ 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: main.cpp Untracked files: (use "git add ..." to include in what will be committed) bin/ obj/ no changes added to commit (use "git add" and/or "git commit -a") User@▒▒▒▒▒▒▒▒▒ MINGW64 ~/Desktop/lab02/alice/project (main) $ 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: main.cpp Untracked files: (use "git add ..." to include in what will be committed) .gitignore obj/ no changes added to commit (use "git add" and/or "git commit -a") User@▒▒▒▒▒▒▒▒▒ MINGW64 ~/Desktop/lab02/alice/project (main) $ 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: main.cpp Untracked files: (use "git add ..." to include in what will be committed) .gitignore project.depend no changes added to commit (use "git add" and/or "git commit -a") User@▒▒▒▒▒▒▒▒▒ MINGW64 ~/Desktop/lab02/alice/project (main) $ 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: main.cpp Untracked files: (use "git add ..." to include in what will be committed) .gitignore project.depend no changes added to commit (use "git add" and/or "git commit -a") User@▒▒▒▒▒▒▒▒▒ MINGW64 ~/Desktop/lab02/alice/project (main) $ git add .gitignore User@▒▒▒▒▒▒▒▒▒ MINGW64 ~/Desktop/lab02/alice/project (main) $ git commit -m 'git: Скрыты продукты сборки' [main 1d8c303] git: Скрыты продукты сборки 1 file changed, 3 insertions(+) create mode 100644 .gitignore User@▒▒▒▒▒▒▒▒▒ MINGW64 ~/Desktop/lab02/alice/project (main) $ git log commit 1d8c30368d03836466478b5279399848d9e1feda (HEAD -> main) Author: Alice (FadeevIS) Date: Sat Apr 1 13:02:38 2023 +0300 git: Скрыты продукты сборки commit 255257244a85dd469f2e26d0b0f9e71815738d3d Author: Alice (FadeevIS) Date: Sat Apr 1 12:37:35 2023 +0300 build: добавлен файл проекта commit 758f7d7a754e41da5f7bb275f5511b9c037b7c9b Author: Alice (FadeevIS) Date: Sat Apr 1 12:35:46 2023 +0300 code: заготовка программы User@▒▒▒▒▒▒▒▒▒ MINGW64 ~/Desktop/lab02/alice/project (main) $ git log --start fatal: unrecognized argument: --start User@▒▒▒▒▒▒▒▒▒ MINGW64 ~/Desktop/lab02/alice/project (main) $ git log --stat commit 1d8c30368d03836466478b5279399848d9e1feda (HEAD -> main) Author: Alice (FadeevIS) Date: Sat Apr 1 13:02:38 2023 +0300 git: Скрыты продукты сборки .gitignore | 3 +++ 1 file changed, 3 insertions(+) commit 255257244a85dd469f2e26d0b0f9e71815738d3d Author: Alice (FadeevIS) Date: Sat Apr 1 12:37:35 2023 +0300 build: добавлен файл проекта project.cbp | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) commit 758f7d7a754e41da5f7bb275f5511b9c037b7c9b Author: Alice (FadeevIS) Date: Sat Apr 1 12:35:46 2023 +0300 code: заготовка программы main.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) User@▒▒▒▒▒▒▒▒▒ MINGW64 ~/Desktop/lab02/alice/project (main) $ git log --oneline --decorate 1d8c303 (HEAD -> main) git: Скрыты продукты сборки 2552572 build: добавлен файл проекта 758f7d7 code: заготовка программы User@▒▒▒▒▒▒▒▒▒ MINGW64 ~/Desktop/lab02/alice/project (main) $ git log --oneline --decorate --all --graph * 1d8c303 (HEAD -> main) git: Скрыты продукты сборки * 2552572 build: добавлен файл проекта * 758f7d7 code: заготовка программы User@▒▒▒▒▒▒▒▒▒ MINGW64 ~/Desktop/lab02/alice/project (main) $ git log --grep 'build' commit 255257244a85dd469f2e26d0b0f9e71815738d3d Author: Alice (FadeevIS) Date: Sat Apr 1 12:37:35 2023 +0300 build: добавлен файл проекта User@▒▒▒▒▒▒▒▒▒ MINGW64 ~/Desktop/lab02/alice/project (main) $ git log --project.cbp fatal: unrecognized argument: --project.cbp User@▒▒▒▒▒▒▒▒▒ MINGW64 ~/Desktop/lab02/alice/project (main) $ git log -- project.cbp commit 255257244a85dd469f2e26d0b0f9e71815738d3d Author: Alice (FadeevIS) Date: Sat Apr 1 12:37:35 2023 +0300 build: добавлен файл проекта User@▒▒▒▒▒▒▒▒▒ MINGW64 ~/Desktop/lab02/alice/project (main) $ git show HEAD~1 commit 255257244a85dd469f2e26d0b0f9e71815738d3d Author: Alice (FadeevIS) Date: Sat Apr 1 12:37:35 2023 +0300 build: добавлен файл проекта diff --git a/project.cbp b/project.cbp new file mode 100644 index 0000000..99bb702 --- /dev/null +++ b/project.cbp @@ -0,0 +1,40 @@ + + + + +