3
コマンド:cookiecutterにcookiecutter-djangoの安定版をダウンロードする方法を教えてください。
cookiecutter https://github.com/pydanny/cookiecutter-django/
は、Djangoの1.9を目的としてcookiecutter-django
の最新のバージョンを、クローンます。
いくつかのタグを指しているStable section in the README
があります。そのうちの1つはhttps://github.com/pydanny/cookiecutter-django/releases/tag/1.8.7
です。
しかし、私はしようとした場合:
cookiecutter https://github.com/pydanny/cookiecutter-django/releases/tag/1.8.7
私はエラーを取得する:だから
subprocess.CalledProcessError: Command '[u'git', u'clone', u'https://github.com/pydanny/cookiecutter-django/releases/tag/1.8.7']' returned non-zero exit status 128
、master
枝の代わりにリリースされているものの安定を使用するcookiecutter
を指定する方法?
これは私のために動作します。しかし、それは新しい問題を明らかにする:チェックアウトオプションなしでテンプレートを使用した後、cookiecutterは私がcookiecutter-django.gitをコロンしたことを警告し、 "削除して再クローンする?" 同じテンプレート(つまり、cookiecutter-django)の両方のバージョンを持つことはできないようです。 – jgomo3
削除して再クローンするには「はい」と答えてください。その後、最新のcookiecutter-djangoを使用したい場合は、同じようにします。 –