diff --git a/README.md b/README.md index 484e305..57832cd 100644 --- a/README.md +++ b/README.md @@ -1266,22 +1266,25 @@ # Git -`git --version` \ -`git config --global user.name "Lifailon"` \ -`ssh-keygen -t rsa -b 4096 -с "lifailon@gmail.com"` \ -`Get-Service | where name -match "ssh-agent" | Set-Service -StartupType Automatic` \ +`git --version` +`git config --global user.name "Lifailon"` add name for commit \ +`git config --global user.email "lifailon@mail.com"` \ +`ssh-keygen -t rsa -b 4096 -с "lifailon@mail.com"` \ +`Get-Service | where name -match "ssh-agent" | Set-Service -StartupType Automatic` настроить автозапуск службы \ `Get-Service | where name -match "ssh-agent" | Start-Service` \ `ssh-agent` \ `ssh-add C:\Users\Lifailon\.ssh\id_rsa` \ -`cat ~\.ssh\id_rsa.pub | Set-Clipboard` \ -`cd C:\git` \ +`cat ~\.ssh\id_rsa.pub | Set-Clipboard` copy to https://github.com/settings/keys \ +`mkdir C:\Git; cd C:\Git` \ `git clone git@github.com:Lifailon/PowerShell-Commands` \ `cd PowerShell-Commands` \ -`git checkout rsa` \ `git status` \ `git diff` \ `git add -A` \ -`git commit -m "v1"` \ +`git commit -m "update files"` \ `git push` \ -`git log` \ -`git show 38cc9210c6cf1399188d0acaa367dde80d77b888` \ No newline at end of file +`git log` commit logs \ +`git show d01f09dead3a6a8d75dda848162831c58ca0ee13` \ +`git branch new_branch` creat branch \ +`git checkout new_branch` change branch \ +`git branch -d new_branch` delete branch \ No newline at end of file diff --git a/posh.txt b/posh.txt index 0a86683..a542a98 100644 --- a/posh.txt +++ b/posh.txt @@ -1268,6 +1268,7 @@ $EventData git --version git config --global user.name "Lifailon" # add name for commit +git config --global user.email "lifailon@mail.com" ssh-keygen -t rsa -b 4096 -с "lifailon@mail.com" Get-Service | where name -match "ssh-agent" | Set-Service -StartupType Automatic # настроить автозапуск службы Get-Service | where name -match "ssh-agent" | Start-Service @@ -1277,14 +1278,13 @@ cat ~\.ssh\id_rsa.pub | Set-Clipboard # copy to https://github.com/settings/keys mkdir C:\Git; cd C:\Git git clone git@github.com:Lifailon/PowerShell-Commands cd PowerShell-Commands -git status # branch +git status git diff git add -A -git commit -m "v1" -git push rsa -git log -git show 38cc9210c6cf1399188d0acaa367dde80d77b888 -git checkout 3f25701874aa5a2c16cc6275fa30baa5b6e477a6 file-name # restore -git branch new_branch -git checkout -b new_branch -git branch -d new_branch \ No newline at end of file +git commit -m "update files" +git push +git log # commit logs +git show d01f09dead3a6a8d75dda848162831c58ca0ee13 +git branch new_branch # creat branch +git checkout new_branch # change branch +git branch -d new_branch # delete branch \ No newline at end of file