Compare commits
10 Commits
d5bcb20e11
...
ea842de5d2
| Author | SHA1 | Date | |
|---|---|---|---|
| ea842de5d2 | |||
| cce9be20c3 | |||
| 3fae528fc6 | |||
| f218c03b26 | |||
| c2282ee0a3 | |||
| 8dc4a3ef55 | |||
| b384aa2d77 | |||
| fba1962578 | |||
| 770ea1f496 | |||
| da5d1b1c96 |
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1 +1,2 @@
|
|||||||
site/
|
site/
|
||||||
|
.obsidian/
|
||||||
3
docs/README.md
Normal file
3
docs/README.md
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
Просто склад моих заметок доступный всем.
|
||||||
|
|
||||||
|
Можно предлагать правки и дополнения на [GitHub](https://github.com/Arity-T/knowledge-base).
|
||||||
39
docs/git/aliases.md
Normal file
39
docs/git/aliases.md
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
# Алиасы команд в Git
|
||||||
|
|
||||||
|
## Полезные ссылки
|
||||||
|
- [Раздел](https://githowto.com/ru/aliases) в GitHowTo
|
||||||
|
|
||||||
|
## Мои алиасы
|
||||||
|
Просто выполнить в терминале:
|
||||||
|
```sh
|
||||||
|
git config --global alias.co checkout
|
||||||
|
git config --global alias.ci commit
|
||||||
|
git config --global alias.cim "commit -m"
|
||||||
|
git config --global alias.st status
|
||||||
|
git config --global alias.br branch
|
||||||
|
git config --global alias.hist "log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short"
|
||||||
|
git config --global alias.histt "log --pretty=format:'%h %cd | %s%d [%an]' --graph --date=iso"
|
||||||
|
git config --global alias.ad "add -A"
|
||||||
|
```
|
||||||
|
|
||||||
|
Пример использования:
|
||||||
|
```sh
|
||||||
|
git st # git status
|
||||||
|
git co main # git checkout main
|
||||||
|
git cim "Some changes" # git commit -m
|
||||||
|
```
|
||||||
|
## Создание алиасов
|
||||||
|
```sh
|
||||||
|
git config --global alias.<alias> <command>
|
||||||
|
```
|
||||||
|
|
||||||
|
## Вывести список алиасов
|
||||||
|
```sh
|
||||||
|
git config --global --get-regexp alias
|
||||||
|
```
|
||||||
|
|
||||||
|
## Удаление алиасов
|
||||||
|
[Вопрос](https://stackoverflow.com/a/48110875/17341937) на StatckOverflow
|
||||||
|
```sh
|
||||||
|
git config --global --unset-all alias.your-alias
|
||||||
|
```
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
# Welcome to MkDocs
|
|
||||||
|
|
||||||
For full documentation visit [mkdocs.org](https://www.mkdocs.org).
|
|
||||||
|
|
||||||
## Commands
|
|
||||||
|
|
||||||
* `mkdocs new [dir-name]` - Create a new project.
|
|
||||||
* `mkdocs serve` - Start the live-reloading docs server.
|
|
||||||
* `mkdocs build` - Build the documentation site.
|
|
||||||
* `mkdocs -h` - Print help message and exit.
|
|
||||||
|
|
||||||
## Project layout
|
|
||||||
|
|
||||||
mkdocs.yml # The configuration file.
|
|
||||||
docs/
|
|
||||||
index.md # The documentation homepage.
|
|
||||||
... # Other markdown pages, images and other files.
|
|
||||||
|
|
||||||
Gitea actions testing
|
|
||||||
Final test
|
|
||||||
3
docs/stylesheets/extra.css
Normal file
3
docs/stylesheets/extra.css
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
.md-source__facts {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
53
mkdocs.yml
53
mkdocs.yml
@@ -1,7 +1,58 @@
|
|||||||
site_name: Tishenko's knowledge base
|
site_name: Tishenko's knowledge base
|
||||||
site_url: https://kb.tishenko.dev
|
site_url: https://kb.tishenko.dev
|
||||||
|
copyright: Copyright © 2025
|
||||||
|
repo_url: https://github.com/Arity-T/knowledge-base
|
||||||
|
repo_name: Arity-T/knowledge-base
|
||||||
|
edit_uri: edit/main/docs/
|
||||||
theme:
|
theme:
|
||||||
name: material
|
name: material
|
||||||
|
language: ru
|
||||||
favicon: assets/favicon.ico
|
favicon: assets/favicon.ico
|
||||||
|
|
||||||
|
icon:
|
||||||
|
repo: fontawesome/brands/github
|
||||||
|
|
||||||
|
features:
|
||||||
|
- navigation.instant
|
||||||
|
- navigation.tabs
|
||||||
|
- content.code.copy
|
||||||
|
- content.action.edit
|
||||||
|
- content.action.view
|
||||||
|
|
||||||
|
palette:
|
||||||
|
# Palette toggle for light mode
|
||||||
|
- media: "(prefers-color-scheme: light)"
|
||||||
|
scheme: default
|
||||||
|
primary: black
|
||||||
|
toggle:
|
||||||
|
icon: material/brightness-7
|
||||||
|
name: Switch to dark mode
|
||||||
|
# Palette toggle for dark mode
|
||||||
|
- media: "(prefers-color-scheme: dark)"
|
||||||
|
scheme: slate
|
||||||
|
primary: black
|
||||||
|
toggle:
|
||||||
|
icon: material/brightness-4
|
||||||
|
name: Switch to light mode
|
||||||
extra:
|
extra:
|
||||||
generator: false
|
generator: false
|
||||||
|
social:
|
||||||
|
- icon: fontawesome/brands/github
|
||||||
|
link: https://github.com/Arity-T
|
||||||
|
|
||||||
|
markdown_extensions:
|
||||||
|
- pymdownx.highlight:
|
||||||
|
anchor_linenums: true
|
||||||
|
line_spans: __span
|
||||||
|
pygments_lang_class: true
|
||||||
|
- pymdownx.inlinehilite
|
||||||
|
- pymdownx.snippets
|
||||||
|
- pymdownx.superfences
|
||||||
|
- toc:
|
||||||
|
permalink: "#"
|
||||||
|
slugify: !!python/object/apply:pymdownx.slugs.slugify
|
||||||
|
kwds:
|
||||||
|
case: lower
|
||||||
|
|
||||||
|
extra_css:
|
||||||
|
- stylesheets/extra.css
|
||||||
Reference in New Issue
Block a user