Django Private Project Git Repo - open source debugging

My team and I are currently working on a django application. We want to track changes in django project files on a private repo (so that all personal information is not available), as well as open source files on github.

We currently have two repositories:

1) Repo for a project containing:

/Main Folder |- .git |- /djangoproject |- requirements.txt |- dev-db.sqlite |- manage.py |- .gitignore 

Git refuses to ignore the second repo, which is a repo application, and is also located in the main folder:

2)

 /Main Folder |- /django-app-name // the name of the repo as appearing on github |- .git |- /djangoapp |- models.py |- urls.py |- views.py |- admin.py |- .... |- .gitignore |- LICENSE |- README.md |- requirements.txt 

This works for our purposes, but it would be very nice to somehow combine the two repositories so that one team works with them. I'm just starting out with git, so I don't know all the great features that git contains. Is there a way to track both the private and public parts of the entire django project within a single repo? What is the best way to use git to have private project settings and an open source application?

+4
source share
1 answer

As far as I know, the best way to do this is to have a git submodule.

See how git submodules work: http://git-scm.com/book/en/Git-Tools-Submodules

+1
source

Source: https://habr.com/ru/post/1446287/


All Articles