- 在github上创建一个仓库, :resposity---->new
- 取名‘my_class’,
- 点击create resposity
- 将该仓库与本地的pycharm联系
- 打开pycharm
- 配置pycharm环境, 将pycharm与conda联姻
直接看老师的教程
(1)Anaconda 简介
https://blog.csdn.net/ITLearnHall/article/details/81708148
(2)tensorflow与pytorch的安装
https://mp.weixin.qq.com/s/Ph6LHuodfYVQpx9te4_5oQ
命令行的方式:命令行创建三个环境,安装tensorflow与pytorch;启动jupyter输入命令: jupyter-notebook
图形界面的方式:创建环境,安装包
pycahrm的方式:安装包
(3)Anaconda与PyCharm的"联姻"
https://mp.weixin.qq.com/s/rO65Dbsg1X_VjdpknM2eZw
(4)git的使用与作业的提交
https://mp.weixin.qq.com/s/d7u-qt9PAsp1zymbXO5Ddw
直接上图
7. 创建一个python文件-- ‘mypython’, 提交到远程仓库
8. commit
-
push
-
查看你提交成功没有
有两种方法:
i:看提交log
ii. 看github的终端的仓库
由此可知道提交成功了 -
如果我发现mypython 文件是一个多余的文件, 我应该怎么删除
使用终端操作, 在pycharm中, 点击最左下的Terminal,
-
将github的项目拉取到本地
git pull origin main
或者
git pull origin master -
删除相应到文件夹
git rm -r --cached ***** // *****表示需要输出的文件名或者目录
$ git commit -m “注释内容”
4. 将项目从本地提交到GitHub上
git config --global http.sslBackend “openssl”
git config --global --add remote.origin.proxy “”
$ git push
在github端看一下是否真的删除了该文件
恭喜我, 删除了。
怎么将github端更新的所有仓库内容和本地的内容进行合并呢?
- 输入 git remote -v
- 即从源仓库更新同步代码, 并合并到本地代码
git fetch origin
git merge origin/main - 更新并合并自己远程仓库的代码
git pull origin main - 向自己的远程仓库推送刚才同源仓库后的代码
git push