git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Jonathan Nieder <jrnieder@gmail.com>
To: "François WAUQUIER" <wokier@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: git checkout -
Date: Fri, 3 Jan 2020 16:48:26 -0800	[thread overview]
Message-ID: <20200104004826.GC130883@google.com> (raw)
In-Reply-To: <CAFS-fjvhAB5EcfHhfp6HYN57W11tkHOc8K8T3oey8qceutuYsg@mail.gmail.com>

Hi,

François WAUQUIER wrote:

> $ git checkout -
>
> I often use this command to go back to previous branch from my history.
> It is quite natural as it uses the same syntax as “cd -“
>
> But i found out it is not documented in
> https://git-scm.com/docs/git-checkout/2.24.0
> I report this to help others to discover this time saving command.

Thanks for reporting!

Ideas for what the documentation should say about it?  (Bonus points
if it comes in the form of a patch against Documentation/git-checkout.txt.
;-)  See [1] for more about how that works.)

Sincerely,
Jonathan

[1] https://www.kernel.org/pub/software/scm/git/docs/SubmittingPatches.html

  reply	other threads:[~2020-01-04  0:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-03 12:40 François WAUQUIER
2020-01-04  0:48 ` Jonathan Nieder [this message]
2020-01-04  5:17   ` git checkout - Todd Zullinger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200104004826.GC130883@google.com \
    --to=jrnieder@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=wokier@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).