仿真代码
Create this repo to store/backup my simulation code in place of NutCloud, which warned me not to backup code files there.
This repository includes:
--Others' codes,which were downloaded online ,especially from github
--my code, mainly written by myself,includes slicing RA and MEC RA.
【熟练运用同步和下拉指令】 可以查看Git命令行指引,gitcode网站的git在线学习教程(如Learn Git Branching (gitcode.host))也可以很直观地了解各种git命令的工作原理
-
本地同步到云端:
git add [文件名/文件夹名/-A],如果是文件夹内部的,可以cd到对应文件夹,ls列出所有文件。这句指令将文件拉到暂存区
git commit -m "本次操作备注" 该指令对比本地暂存区文件和远程仓库文件,检查所有变更,指定相应的同步策略。注意加后面这两句,否则会跳到vim模式,此时用insert插入备注,enter确认,按“:wq”退出,完成commit
git push -u (origin) (master) 执行commit指定的同步操作到远程仓库
-
云端的变更同步到本地:
git pull
-
在本地文件夹建库: git init
-
关联本地库和云端库: git remote add [指定名字] [仓库地址,ssh或者html]
-
查看本地文件更改状态: git status