Interactive Git Visualizer
Welcome to the Git Visualizer
Click "git commit" to add a new snapshot of your code to the timeline.
How to use this project
- Commit: Click
git committo save your work. - Branch: Click
git branch feature. This creates a new timeline and switches you to it. - Work: Make a few commits on the
featurebranch. - Checkout: Click
git checkout mainto switch back to the main branch. Notice how the “HEAD” (the highlighted circle) moves. - Merge: Once back on
main, clickgit merge featureto combine the work.
Key Concepts
- Commit: A snapshot of your code at a specific point in time.
- Branch: A separate timeline for developing features or fixing bugs.
- Checkout: The act of switching between branches. It moves your “HEAD” pointer.
- Merge: Combining the history and changes from one branch into another.
- HEAD: The current location (pointer) of where you are working in the Git history.