update files 24.03.2023
This commit is contained in:
parent
d01f09dead
commit
7e15735a6b
2 changed files with 22 additions and 19 deletions
18
posh.txt
18
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
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue