You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the gitGraph diagram, switch should be usable besides checkout to switch branches.
I teach and design workshop material for git beginners. The git switch command is much more beginner friendlly than git checkout and we teach this method first to beginners. Being able to use switch in gitGraph diagrams would reduce confusion when using them to teach git to beginners.
(You may well know, that the git checkout command is much more powerful than git switch and can e.g. checkout arbitrary commits. This is currently not implemented in gitGraph, and checkout seems to function analogous to the git switch command.)
Example
Instead of...
gitGraph
commit
branch feature
commit
checkout main
commit
merge feature
...I would prefer to use...
gitGraph
commit
branch feature
commit
switch main
commit
merge feature
...to produce this diagram.
Screenshots
The text was updated successfully, but these errors were encountered:
Proposal
In the gitGraph diagram,
switch
should be usable besidescheckout
to switch branches.I teach and design workshop material for git beginners. The
git switch
command is much more beginner friendlly thangit checkout
and we teach this method first to beginners. Being able to useswitch
in gitGraph diagrams would reduce confusion when using them to teach git to beginners.(You may well know, that the
git checkout
command is much more powerful thangit switch
and can e.g. checkout arbitrary commits. This is currently not implemented in gitGraph, andcheckout
seems to function analogous to thegit switch
command.)Example
Instead of...
...I would prefer to use...
...to produce this diagram.
Screenshots
The text was updated successfully, but these errors were encountered: