+----------+ +-----------+ +------------+
| | | | | |
| git init | --> | git add | --> | git commit |
| | | [file] | | -m "msg" |
+----------+ +-----------+ +------------+
+-------------------+
| Local Repository |
| |
| +----------+ |
| | | |
| | git log | |
| | | |
| +----------+ |
| | |
| v |
| +------------+ |
| | | |
| | list of | |
| | commits | |
| | | |
| +------------+ |
| | |
| v |
| +------------+ |
| | | |
| | git revert | |
| | commit_id | |
| | | |
| +------------+ |
| |
+-------------------+
+-------------------+
| Local Repository |
| |
| +----------+ | +--------------+
| | | | | |
| | git init | | | git checkout |
| | | | | -b branch |
| +----------+ | | |
| | | +--------------+
| v | |
| +-----------+ | |
| | | | |
| | git add | | v
| | [file] | | +------------------+
| | | | | |
| +-----------+ | | git merge branch |
| | | | |
| v | +------------------+
| +------------+ | |
| | | | |
| | git commit | | |
| | -m "msg" | | |
| | | | |
| +------------+ | |
| | |
+-------------------+ |
v
+-----------------+
| Merged Changes |
+-----------------+
Contoh visualisasi branch
gitGraph
commit
commit
branch fiturbaru
checkout fiturbaru
commit
commit
checkout main
merge fiturbaru
commit
commit
Perhatikan repositori ini melalui Issue
, Project Management
, dan Pull Request