如何将Django 2.2.5web框架链接到GitHub?

2024-03-28 14:00:10 发布

您现在位置:Python中文网/ 问答频道 /正文

我在GitHub上创建了一个存储库,并在Pycharm Django设置上登录了我的帐户。目前我在终端命令方面没有任何进展。我不知道这样做对不对?你知道吗

看起来我尝试过Django旧版本的命令。你知道吗

git init

Tags: djangogit命令github终端init帐户pycharm
1条回答
网友
1楼 · 发布于 2024-03-28 14:00:10

我假设您正在尝试将您的Django项目上传到Github上,因此以下是您可以遵循的步骤。你知道吗

# 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

相关问题 更多 >