Skip to content

Commit

Permalink
📝 Add git switch -
Browse files Browse the repository at this point in the history
  • Loading branch information
veit committed Jan 19, 2025
1 parent 7d7e497 commit f7e300e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/productive/git/branch.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ Git branches
``-c``
creates the branch to switch to.

:samp:`$ git switch -`
alternates between the last two branches. This makes it much easier to jump
back and forth between branches.

.. note::

In Git < 2.23, ``git switch`` is not yet available. In this case you
Expand Down

0 comments on commit f7e300e

Please sign in to comment.