threads / discuss / 53795

git switch -c message improvement suggestion

Subject: git switch -c message improvement suggestion

## tl;dr

One message between Jul 3, 2020 and Jul 3, 2020.

replies: 0people: 1as markdown or json

Ed Avis· Jul 3, 2020, 08:30 UTC · lore
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>

← back to recent threads