Re: PATCH: improve git switch documentation
- From
Bagas Sanjaya <bagasdotme@gmail.com>
- Date
- Jul 10, 2021, 10:37 UTC
- Message-ID
- <3dbe1f6f-1e9d-3bcc-a7b1-4d9cde56bcde@gmail.com>
- In-Reply-To
- <87im1ieaba.fsf@osv.gnss.ru>
On 10/07/21 17.24, Sergey Organov wrote:
Show 8 quoted lines
> I believe that's because "git switch" tries to do too much. "git switch" > should rather switch between existing branches, and do nothing else. As > I said once in this discussion already: trouble writing good > documentation is often indication of some flaws in the design. > > Creating (a branch) is fundamentally different operation than switching > to (a branch), and that's why the former doesn't fit into "git switch". >
So I prefer your suggestion. Also make `git switch` also switches tags or random commits (like `git checkout <tag>` and `git checkout <commit>`).
-- An old man doll... just what I always wanted! - Clara