#git
10 notes carry this tag.
Push qilingan kalit tarixda qoladi: git show bilan topamiz, avval rotate qilamiz, kerak boʻlsa filter-repo bilan tozalaymiz va .gitignore tuzogʻini koʻramiz.
A pushed key stays in history: we find it with git show, rotate it first, clean history with filter-repo only if needed, and look at the .gitignore trap.
Git'ni buyruqlar roʻyxati sifatida emas, maʼlumot modeli sifatida oʻrganamiz: commit — bu snapshot, branch — bitta hash yozilgan fayl, hamma narsa `.git` ichidagi obyektlar.
Inside .git: a commit is a snapshot of the whole project, a branch is a 41-byte file, plus HEAD, fast-forward merge and git revert on a real repo.
.git ichiga kiramiz: commit — butun loyiha surati, branch — 41 baytlik fayl, HEAD, fast-forward merge va git revert real repo'da.
Заглядываем в .git: коммит — снимок всего проекта, ветка — файл в 41 байт, HEAD, fast-forward merge и git revert на живом репозитории.
Go through branch → pull request → review → merge on a local «server» and learn to write a clear, polite review comment and to answer one.
Branch → pull request → review → merge siklini lokal «server»da oʻtamiz va aniq, xushmuomala review izohi yozish hamda unga javob berishni oʻrganamiz.
Проходим цикл ветка → pull request → ревью → merge на локальном «сервере» и учимся писать ясный, вежливый комментарий ревью и отвечать на него.
Запушенный ключ остаётся в истории: находим его через git show, сначала делаем rotate, при необходимости чистим filter-repo и разбираем ловушку .gitignore.