which gitignore file shall i use when uploading a django project which contain a secret key?

Viewed 876

I am new to GitHub: I have uploaded a django project without a .gitignore file and GitHub Community banned my account.

That is why I need to know how to use a .gitignore file as well as adding a license.

1 Answers

Recreate your django project locally, initialize a new local git repository in init (git init .), and, before doing any git add/git commit, add:

Add and commit locally.

Then create a new GitHub account, a new empty GitHub repository.

Go back to your local repository and:

cd /path/to/local/repo
git remote add origin https://github.com/<NewAccount>/<newRepo>
git push -u origin master

You can then see "Where to store secret keys DJANGO" for managing your secret key.

Related