1

I want to fork both Twitter Bootstrap and one of its forks, Kickstrap. However, github thinks they're the same repo and after I fork one, Github shows the other as already forked to my account. Is it possible fork both to the same account?

(Use case is I need to add both as submodules to project, in which I'm scripting the generation of variations of a project starter template, some with Bootstrap and some with Kickstrap)

Adam Grant
  • 12,477
  • 10
  • 58
  • 65
bgibson
  • 17,379
  • 8
  • 29
  • 45

2 Answers2

2

Yes, you should use them as submodules and not fork them unless you want to contribute with them.

You cannot fork two repositories with the same name, that being the case of forks and original repos, as said here.

A work around would be, in case you want to contribute with both projects, to fork the most specific and latest one, in this case, Kickstrap.

This way, Kickstrap will point to the original root, being Bootstrap, and you can point your Pull Requests to either the original root or the final branch.

Community
  • 1
  • 1
Daniel Ribeiro
  • 10,156
  • 12
  • 47
  • 79
  • I'd like the option of contributing, otherwise I'd do exactly that. – bgibson Apr 11 '12 at 19:01
  • Ah, interesting, didn't know that. Good enough to work with for now, thanks. – bgibson Apr 11 '12 at 19:10
  • Another work around might be to have two accounts on GitHub. But personally I don't understand why you need two repositories. Can't you just use multiple branches for your needs? – dkinzer Apr 11 '12 at 19:15
1

Kickstrap actually includes the full unmodified Bootstrap repo in Kickstrap/bootstrap/. This is by design so you can keep the Bootstrap core up-to-date without affecting your work in Kickstrap.

You could replace those contents with a git clone of bootstrap and just add Kickstrap/bootstrap to your .gitignore list so Xhibit doesn't tell you how he knows you like .git folders.

Adam Grant
  • 12,477
  • 10
  • 58
  • 65