This repository has been archived on 2023-11-08. You can view files and clone it, but cannot push or open issues or pull requests.
How-To-Git-Started/resources/visualize-git.md

630 B

Visualize git

https://johanneslerch.github.io/visualizing-git/

commands

pres()

Adding commits

git commit

Creating a branch

git branch feature git commit git checkout feature git commit git commit git commit git checkout master git branch feature2 git commit git checkout feature2 git commit git commit git commit git commit git checkout master

Merging with master

git checkout master git merge feature git merge feature2

Delete unused branches

git branch -d feature git branch -d feature2

undo

Rebase with master

git checkout master git rebase feature git checkout feature git merge master