git switch -c message improvement suggestion
- From
- Ed Avis <ed.avis@qmaw.com>
- Date
- Jul 3, 2020, 08:30 UTC
- Message-ID
- <BL0PR11MB346072F896E88001502324C69D6A0@BL0PR11MB3460.namprd11.prod.outlook.com>
I think that git switch -c could tell you not only that you already created the branch, but you already switched to it!
% git switch -c branch1 % git switch -c branch1 fatal: A branch named 'branch1' already exists, and you are already on it
-- Ed Avis <ed.avis@qmaw.com>