-2

Can I initialize a new repo for a branch? I tried the git init command and got this message:

Reinitialized existing Git repository in /Users/UserNameRedacted/workspace/twitter_clone/.git/
Andrew C
  • 13,845
  • 6
  • 50
  • 57
Kohl
  • 77
  • 1
  • 15

1 Answers1

-1

You want git checkout --orphan nameOfBranch.

See: A duplicate question.

Community
  • 1
  • 1
Nate
  • 2,205
  • 17
  • 21