Влад Петров | ejiek
18.04.2024
git log
git log --graph
git log --graph --abbrev-commit --all
--decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n%C(white)%s%C(reset) %C(dim green)- %an%C(reset)'
git config --global --edit
[alias]
statso = status
sattus = status
syats = status
tsatus = status
s = status
flowchart LR wd[Working Directory] stage[Staging] repo[(Local Repository)] remote[(Remote Repository)] remote2[(Another Remote)] patch@{ shape: procs, animate: true, label: "Patches"} wd e1@--> stage stage e2@--> repo repo e3@--> wd repo <--> remote repo <--> remote2 repo <--> patch e1@{ animate: true, animation: slow } e2@{ animate: true, animation: slow } e3@{ animate: true, animation: slow }
git format-patch -1 HEAD
git apply 0001-commit-message.patch
Secure Shell
ftp | 20,21 |
ssh | 22 |
telnet | 23 |
ssh-keygen -t ed25519 -f ~/.ssh/github
[email protected]:ejiek-academy/agpu-labs.git
gh:ejiek-academy/agpu-labs
~/.ssh/config
Host github gh
User git
HostName github.com
IdentityFile ~/.ssh/github
gitGraph commit commit commit id: "arabic" branch roman checkout roman commit id: "roman" checkout main
gitGraph commit commit commit id: "arabic" commit id: "roman"
fast-forward
gitGraph commit commit commit id: "arabic" branch roman checkout roman commit id: "roman" checkout main merge roman
gitGraph commit commit commit id: "arabic" branch roman checkout roman commit id: "roman" checkout main branch text checkout text commit id: "text" checkout main merge roman merge text
[merge]
conflictstyle = diff3
git commit --amend
git rebase-i HEAD~
reword