Sergej Chodarev (sergejx.net)
Version control is a time machine for your work; you can go back.
– The Pragmatic Programmer, tip #28
working/
snapshot-1/
snapshot-2/
snapshot-3/
snapshot-*/message
snapshot-97/
snapshot-98/
snapshot-99/
snapshot-100/
snapshot-101/
snapshot-109/
snapshot-99
snapshot-110
?snapshot-110/message
:...
Parent: snapshot-99
snapshot-111/message
:...
Parent: snapshot-109
branches
main snapshot-115
Version 1.0 Maintenance snapshot-110
tags
Version 1.0 snapshot-99
Version 1.0.1 snapshot-110
message
8ba3441b6b89cad23387ee875f2ae55069291f4b
working/
cp -R snapshot-120 staging
working/
→ staging/
cp -R staging snapshot-121
objects/
.git/objects
– objekty identifikované hashomgit add
– kopírovanie do prípravnej oblasti (staging)git commit
– vytvorenie nového snímku z obsahu prípravnej oblastiUse commits or pushes to trigger builds, tests, releases. Use a version control tag to deploy to production.
– The Pragmatic Programmer, tip #89