-1

I have a github project that's set up with a ll the build files and everything just the way I want them (by someone else more able than myself), and I want to start a new project with all those settings. However, this project doesn't belong in the repo.

How can I systematically exclude everything in this project from the repo?

Elliot JJ
  • 543
  • 6
  • 19

2 Answers2

0

Start a new repository for the new project and copy the files you want the new project to use into it.

David Culp
  • 5,354
  • 3
  • 24
  • 32
0

If I understand your question correctly, there is a github project (that is not yours) that has some files that you'd like to include in your new projects; however, you just want the files, not the git repo history.

If that is correct, here is how you do that:

% mkdir my-new-project
% cd !$
% curl -#L https://github.com/USER/PROJECT/archive/master.tar.gz | tar xz --strip 1

That will put the project's files into your current directory and won't bring the project's git repo along with it.

Wil Moore III
  • 6,968
  • 3
  • 36
  • 49