update files 24.03.2023

This commit is contained in:
Lifailon 2023-03-24 12:32:28 +03:00
parent d01f09dead
commit 7e15735a6b
2 changed files with 22 additions and 19 deletions

View file

@ -1266,22 +1266,25 @@
# Git # Git
`git --version` \ `git --version`
`git config --global user.name "Lifailon"` \ `git config --global user.name "Lifailon"` add name for commit \
`ssh-keygen -t rsa -b 4096 -с "lifailon@gmail.com"` \ `git config --global user.email "lifailon@mail.com"` \
`Get-Service | where name -match "ssh-agent" | Set-Service -StartupType Automatic` \ `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` \ `Get-Service | where name -match "ssh-agent" | Start-Service` \
`ssh-agent` \ `ssh-agent` \
`ssh-add C:\Users\Lifailon\.ssh\id_rsa` \ `ssh-add C:\Users\Lifailon\.ssh\id_rsa` \
`cat ~\.ssh\id_rsa.pub | Set-Clipboard` \ `cat ~\.ssh\id_rsa.pub | Set-Clipboard` copy to https://github.com/settings/keys \
`cd C:\git` \ `mkdir C:\Git; cd C:\Git` \
`git clone git@github.com:Lifailon/PowerShell-Commands` \ `git clone git@github.com:Lifailon/PowerShell-Commands` \
`cd PowerShell-Commands` \ `cd PowerShell-Commands` \
`git checkout rsa` \
`git status` \ `git status` \
`git diff` \ `git diff` \
`git add -A` \ `git add -A` \
`git commit -m "v1"` \ `git commit -m "update files"` \
`git push` \ `git push` \
`git log` \ `git log` commit logs \
`git show 38cc9210c6cf1399188d0acaa367dde80d77b888` `git show d01f09dead3a6a8d75dda848162831c58ca0ee13` \
`git branch new_branch` creat branch \
`git checkout new_branch` change branch \
`git branch -d new_branch` delete branch

View file

@ -1268,6 +1268,7 @@ $EventData
git --version git --version
git config --global user.name "Lifailon" # add name for commit 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" 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" | Set-Service -StartupType Automatic # настроить автозапуск службы
Get-Service | where name -match "ssh-agent" | Start-Service 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 mkdir C:\Git; cd C:\Git
git clone git@github.com:Lifailon/PowerShell-Commands git clone git@github.com:Lifailon/PowerShell-Commands
cd PowerShell-Commands cd PowerShell-Commands
git status # branch git status
git diff git diff
git add -A git add -A
git commit -m "v1" git commit -m "update files"
git push rsa git push
git log git log # commit logs
git show 38cc9210c6cf1399188d0acaa367dde80d77b888 git show d01f09dead3a6a8d75dda848162831c58ca0ee13
git checkout 3f25701874aa5a2c16cc6275fa30baa5b6e477a6 file-name # restore git branch new_branch # creat branch
git branch new_branch git checkout new_branch # change branch
git checkout -b new_branch git branch -d new_branch # delete branch
git branch -d new_branch