一、github上创建账户

github是一个仓库,用于代码管理。我刚好想将代码放到仓库里面管理,因此,写了这篇博客。我想着,大体思路应该是:
1、在github上面创建账号
2、在本地开启客户端
3、通过某种方式建立连接
4、pycharm需要进行某种设置
话不多说,打开官网,开启github之旅。首先打开官网:
https://github.com/login? 在这个界面首先注册,然后登陆,以下是登录后的界面:
github pytorch推荐系统_github pytorch推荐系统

二、阅读官方文档

我们点击向导,先去读一下里面的信息

github pytorch推荐系统_git_02

github pytorch推荐系统_github pytorch推荐系统_03

github pytorch推荐系统_官网_04

github pytorch推荐系统_github pytorch推荐系统_05

github pytorch推荐系统_git_06

三、实战演练

github pytorch推荐系统_github pytorch推荐系统_07

github pytorch推荐系统_git_08


github pytorch推荐系统_git_09

github pytorch推荐系统_github pytorch推荐系统_10


github pytorch推荐系统_github pytorch推荐系统_11


github pytorch推荐系统_github pytorch推荐系统_12

github pytorch推荐系统_git_13


github pytorch推荐系统_官网_14


github pytorch推荐系统_github_15


也可下载客户端完成上述步骤,打开如下:

https://desktop.github.com/

github pytorch推荐系统_git_16

四、pycharm连接github

github pytorch推荐系统_git_17


如上图,输入账号密码即可连接,如果连接不上,请检查账号密码。在这之前,需要安装Git。我们下载安装Git,并在Pycharm中设置好git.exe的安装位置路径。如下图:

github pytorch推荐系统_git_18


如果使用账号密码还登录不上,那很有可能是Github禁用了这种登陆方式,即github账号密码的登陆方式被移除了,只能通过token方式连接,如下图所示:remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.

remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.

github pytorch推荐系统_git_19


github pytorch推荐系统_git_20


github设置token和token的登陆方式

github pytorch推荐系统_github_21


github pytorch推荐系统_github_22


github pytorch推荐系统_github_23

github pytorch推荐系统_github_24


github pytorch推荐系统_github pytorch推荐系统_25


github pytorch推荐系统_github_26

把工程上传到github

github pytorch推荐系统_github pytorch推荐系统_27


github pytorch推荐系统_官网_28


github pytorch推荐系统_github_29


github pytorch推荐系统_github_30


github pytorch推荐系统_git_31


至此,github完美连接pycharm。说明我们之前的思路,大体正确。如有问题,请私聊我。

五、分享项目给其他成员

github pytorch推荐系统_git_32


github pytorch推荐系统_git_33