Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved. Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows PS C:\Users\tatja\OneDrive\Рабочий стол\asfdhsrgfhnsfgn> git init Initialized empty Git repository in C:/Users/tatja/OneDrive/Рабочий стол/asfdhsrgfhnsfgn/.git/ PS C:\Users\tatja\OneDrive\Рабочий стол\asfdhsrgfhnsfgn> git remote add origin https://github.com/Valik63/git PS C:\Users\tatja\OneDrive\Рабочий стол\asfdhsrgfhnsfgn> git add . PS C:\Users\tatja\OneDrive\Рабочий стол\asfdhsrgfhnsfgn> git status On branch master No commits yet Changes to be committed: (use "git rm --cached ..." to unstage) new file: instruction.txt PS C:\Users\tatja\OneDrive\Рабочий стол\asfdhsrgfhnsfgn> git commit -m "insctruction" [master (root-commit) afaea02] insctruction 1 file changed, 1 insertion(+) create mode 100644 instruction.txt PS C:\Users\tatja\OneDrive\Рабочий стол\asfdhsrgfhnsfgn> git push fatal: The current branch master has no upstream branch. To push the current branch and set the remote as upstream, use git push --set-upstream origin master To have this happen automatically for branches without a tracking upstream, see 'push.autoSetupRemote' in 'git help config'. PS C:\Users\tatja\OneDrive\Рабочий стол\asfdhsrgfhnsfgn> git push --set-upstream origin master Enumerating objects: 3, done. Counting objects: 100% (3/3), done. Writing objects: 100% (3/3), 240 bytes | 240.00 KiB/s, done. Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 remote: remote: Create a pull request for 'master' on GitHub by visiting: remote: https://github.com/Valik63/git/pull/new/master remote: To https://github.com/Valik63/git * [new branch] master -> master branch 'master' set up to track 'origin/master'. PS C:\Users\tatja\OneDrive\Рабочий стол\asfdhsrgfhnsfgn> git push Everything up-to-date PS C:\Users\tatja\OneDrive\Рабочий стол\asfdhsrgfhnsfgn> git push Everything up-to-date PS C:\Users\tatja\OneDrive\Рабочий стол\asfdhsrgfhnsfgn> git add . PS C:\Users\tatja\OneDrive\Рабочий стол\asfdhsrgfhnsfgn> git commit -m "Описание изменений" [master 4bce9a7] Описание изменений 1 file changed, 1 insertion(+), 1 deletion(-) PS C:\Users\tatja\OneDrive\Рабочий стол\asfdhsrgfhnsfgn> git push Enumerating objects: 5, done. Counting objects: 100% (5/5), done. Writing objects: 100% (3/3), 305 bytes | 305.00 KiB/s, done. Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 To https://github.com/Valik63/git afaea02..4bce9a7 master -> master PS C:\Users\tatja\OneDrive\Рабочий стол\asfdhsrgfhnsfgn> git push origin --delete master To https://github.com/Valik63/git - [deleted] master PS C:\Users\tatja\OneDrive\Рабочий стол\asfdhsrgfhnsfgn> git push origin main error: src refspec main does not match any error: failed to push some refs to 'https://github.com/Valik63/git' PS C:\Users\tatja\OneDrive\Рабочий стол\asfdhsrgfhnsfgn> git branch -m master main PS C:\Users\tatja\OneDrive\Рабочий стол\asfdhsrgfhnsfgn> git push origin main To https://github.com/Valik63/git ! [rejected] main -> main (fetch first) error: failed to push some refs to 'https://github.com/Valik63/git' hint: Updates were rejected because the remote contains work that you do hint: not have locally. This is usually caused by another repository pushing hint: to the same ref. You may want to first integrate the remote changes hint: (e.g., 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details. PS C:\Users\tatja\OneDrive\Рабочий стол\asfdhsrgfhnsfgn> git push --set-upstream origin main To https://github.com/Valik63/git ! [rejected] main -> main (fetch first) error: failed to push some refs to 'https://github.com/Valik63/git' hint: Updates were rejected because the remote contains work that you do hint: not have locally. This is usually caused by another repository pushing hint: to the same ref. You may want to first integrate the remote changes hint: (e.g., 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details. PS C:\Users\tatja\OneDrive\Рабочий стол\asfdhsrgfhnsfgn> git pull origin main --rebase remote: Enumerating objects: 11, done. remote: Counting objects: 100% (11/11), done. remote: Compressing objects: 100% (6/6), done. remote: Total 11 (delta 2), reused 8 (delta 1), pack-reused 0 (from 0) Unpacking objects: 100% (11/11), 1.69 KiB | 34.00 KiB/s, done. From https://github.com/Valik63/git * branch main -> FETCH_HEAD * [new branch] main -> origin/main Successfully rebased and updated refs/heads/main. PS C:\Users\tatja\OneDrive\Рабочий стол\asfdhsrgfhnsfgn> git add . PS C:\Users\tatja\OneDrive\Рабочий стол\asfdhsrgfhnsfgn> git rebase --continue fatal: No rebase in progress? PS C:\Users\tatja\OneDrive\Рабочий стол\asfdhsrgfhnsfgn> git push origin main Enumerating objects: 7, done. Counting objects: 100% (7/7), done. Delta compression using up to 12 threads Compressing objects: 100% (4/4), done. Writing objects: 100% (6/6), 677 bytes | 677.00 KiB/s, done. Total 6 (delta 0), reused 0 (delta 0), pack-reused 0 To https://github.com/Valik63/git 56576c3..06857d1 main -> main PS C:\Users\tatja\OneDrive\Рабочий стол\asfdhsrgfhnsfgn>