Joelad
Joelad

Reputation: 490

How to link Django 2.2.5 web framework to GitHub?

I have created a repository on GitHub and logged into my account on Pycharm Django settings. Currently I haven't had any luck with the terminal commands. I don't know if this is the right way to do things?

Looks like I've tried commands that are for older versions of Django.

git init

Upvotes: 0

Views: 63

Answers (1)

Sahil
Sahil

Reputation: 1413

I am assuming you're trying to upload your Django project onto Github, so these are the steps you can follow.

# initialize your project as a git repository. 
git init
# this will add an origin, meaning, where the files will be uploaded.
git remote add origin https://github.com/<username>/repository-name.git
# this will add all the files to your working tree
git add . 
# this will commit your code 
git commit -m "Your message as to what you have changed in code"
# this will push the code to Github, on master branch.
git push origin master

Upvotes: 1

Related Questions