用atom写python,选择Toggle Git Tab,和Toggle GitHub Tab出现右侧的选项卡


Git会帮你生成一个Repository

但是要关联到GitHub上的项目,还是要在网站上新建一个Repository


新建后有提示你怎么和本地的repository关联起来


(myprojectenv) [email protected] ~/myproject/myproject $ git remote add origin https://github.com/crsbrk/HRSystemByDjango.git

(myprojectenv) [email protected] ~/myproject/myproject $ git push -u origin master

Username for 'https://github.com': crsbrk

Password for 'https://[email protected]':

Counting objects: 487, done.

Delta compression using up to 2 threads.

Compressing objects: 100% (476/476), done.

Writing objects: 100% (487/487), 8.62 MiB | 1.32 MiB/s, done.

Total 487 (delta 106), reused 0 (delta 0)

remote: Resolving deltas: 100% (106/106), done.

remote:

remote: Create a pull request for 'master' on GitHub by visiting:

remote:      https://github.com/crsbrk/HRSystemByDjango/pull/new/master

remote:

To https://github.com/crsbrk/HRSystemByDjango.git

* [new branch]      master -> master

Branch master set up to track remote branch master from origin.

之后就关联起来了


修改代码:


可以选择push,提示输入密码





分类: django开发

发表评论

电子邮件地址不会被公开。 必填项已用*标注