Creating a new project from the project skeleton using git

To start a new django project faster and faster, I would like to keep a separate "project skeleton" on which I base all my new projects. It would be great if I improved the skeleton, I could make these improvements in my active projects. How to do it with git?

So maybe on my remote git repository I would have 1 repo for each project and one for the skeleton?

  • Rgo-a-repo
  • Rgo-in-repo
  • wireframe repo

If I want to create a new proj-C locally based on the skeleton, then move my local changes to the remote server in a new repo called proj-C-repo, how can I do this?

I read quite a bit of git documentation, but I'm confused about how to do this. Do I need to clone a skeleton or create an empty repo, and then track the remote branch or something else?

+5
source share
3 answers

This is exactly what git (or any DVCS) is suitable for. Give the skeleton your own repo; To create a new project, which you usually cloneskeleton on your workstation, work out and then pushto another place (for example, myserver: repo-C). If you later improve the skeleton and click on the changes, you can run them into an existing project with git pull myserver:skeletonand then merge.

+9
source

You can do the following:

Git, , A B .gitignore. Git A B .

, :

skeleton
 +---> .git
 +---> project A
     +-----> .git
 +---> project B
     +-----> .git

Git Git, subrepo .gitignore..

0

sbt

sbt, Scala :

  • , , ( eclipse)!
  • Git, .gitignore.
0

All Articles