2

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.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
Joy
  • 21
  • 1
  • 7
  • We answer one question per question only. Make sure it's specific! We cant explain everything here. For a full overview consult the documentation, any tutorial or book. – Klaus D. Sep 12 '20 at 04:47

1 Answers1

0

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.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250