Skip to content

Commit f7e300e

Browse files
committed
📝 Add git switch -
1 parent 7d7e497 commit f7e300e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/productive/git/branch.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ Git branches
2828
``-c``
2929
creates the branch to switch to.
3030

31+
:samp:`$ git switch -`
32+
alternates between the last two branches. This makes it much easier to jump
33+
back and forth between branches.
34+
3135
.. note::
3236

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

0 commit comments

Comments
 (0)