Automatically initialise the project as git repo

57 views
Skip to first unread message

mihir karbelkar

unread,
Jan 25, 2019, 7:35:40 AM1/25/19
to Django developers (Contributions to Django itself)
Hi,
I have made several projects with Django but every time I create a new project I have to initialize the repo for git. It would be better if the project initialized itself. Maybe we can add this feature in to help make development "even faster to meet goals in record time".
I would love to work on this but it will only be my first contribution so If we agree on this I can open probably open an issue and work on it.
Also I would like to work for django in GSOC 2019 so any help would be appreciated.
Thanks.

Kye Russell

unread,
Jan 25, 2019, 7:43:15 AM1/25/19
to django-d...@googlegroups.com
I am against this. It assumes too much about the user's system and version management preferences.

I think there is little to gain given that `git init .` is 10 characters.

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-develop...@googlegroups.com.
To post to this group, send email to django-d...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/657a58db-8129-4490-a14a-9fe32d0b03d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Adam Johnson

unread,
Jan 25, 2019, 7:58:15 AM1/25/19
to django-d...@googlegroups.com
Agree

Feel free to make a script that does startproject, git init, and anything else you need.

Did you know startproject supports templates so if you’re really cranking out projects with a standard format, you can make one for yourself to save much more time there?


For more options, visit https://groups.google.com/d/optout.
--
Adam

Dmitriy Sintsov

unread,
Jan 26, 2019, 8:25:33 AM1/26/19
to Django developers (Contributions to Django itself)
Git is not the only choice. There is Mercurial version control system, which is written in Python and thus I prefer it for private non-git repositories of code. You can even "import mercurial" from Django code to get the current revision, for example. Favoring git only which is non-Python solution would be to opinionated.
Reply all
Reply to author
Forward
0 new messages