Using git to control the version for an app in my project

40 views
Skip to first unread message

durir...@gmail.com

unread,
Jul 22, 2015, 10:55:14 AM7/22/15
to Django users
Hello, I'm trying to start a git repo that onyl controls the changes in my app of my Django's project, but I don't get other thing that a VCS error 'cause of a root problem: so I can git the entire project, but not an app separately. Does anyone had this problem before? Is something of Django configuration? It will be sure that I'll have to create a separately git repo for the app?

Thanks.

Nkansah Rexford

unread,
Jul 22, 2015, 2:56:45 PM7/22/15
to Django users
I couldn't understand your question properly, but I guess you're looking to ignore some parts of your git? Maybe .gitignore file is what you need?

Stephen J. Butler

unread,
Jul 22, 2015, 3:19:43 PM7/22/15
to django...@googlegroups.com
Are you saying that the entire project is already a git repo, but you want to have a seperate repo for just one of the apps? In that case, you should do a git submodule:



On Wed, Jul 22, 2015 at 9:51 AM, <durir...@gmail.com> wrote:
Hello, I'm trying to start a git repo that onyl controls the changes in my app of my Django's project, but I don't get other thing that a VCS error 'cause of a root problem: so I can git the entire project, but not an app separately. Does anyone had this problem before? Is something of Django configuration? It will be sure that I'll have to create a separately git repo for the app?

Thanks.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/fe86c493-4ebb-45a9-bb32-f90d445a7f08%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

durir...@gmail.com

unread,
Jul 23, 2015, 6:31:57 AM7/23/15
to Django users, durir...@gmail.com
I refer to a new project (in all the possible meanings). When I use startapp to create an app, I want to only git (as you would do for any other thing) that app, nothing more:

django-admin startproject myproject
cd myproject
python3 manage
.py startapp myapp
cd myapp
git init

It's very simple: just versioning something specific.

Anyway, forgot it, I just tested again, and all goes ok. Thanks anyway, and I will check that submodule feature in the future.
Reply all
Reply to author
Forward
0 new messages