https://www.hpccube.com/wiki/index.php/SLURM使用基础教程 提交作业
srun # 交互式作业提交,提交命令后,等待作业执行完成之后返回命令行窗口 sbatch # 用户提交命令即返回命令行窗口,但此时作业在进入调度状态,在资源满足要求时,分配完计算结点之后,系统将在所分配的第一个计算结点(而不是登录结点)上加载执行用户的作业脚本为什么要module load ? 要先load
https://www.liaoxuefeng.com/wiki/896043488029600/896954117292416
第一步
ssh-keygen -t rsa -C "youremail@example.com" # 创建SSH key, 一路回车可以在用户主目录里找到.ssh目录,里面有id_rsa和id_rsa.pub两个文件,这两个就是SSH Key的秘钥对,id_rsa是私钥,不能泄露出去,id_rsa.pub是公钥,可以放心地告诉任何人。cd 第二步 登录github -> Settings -> SSH and GPG keys -> New SSH key -> title随意, key复制id_rsa.pub的内容
先在github上建立一个新的库比如test
git remote add origin git@github.com:shutongcs/test.git # 关联 git push -u origin master # 关联后,第一次推送master分支的所有内容 git push origin master # 之后,每次本地提交(add+commit)后,推送最新修改从建库开始的操作:
git init git remote add origin git@github.com:shutongcs/SIGCOMM.git git pull --rebase origin master # 如果github的库里有本地没有的文件直接push会报错,需要先把远程库的文件pull下来 git add <name> # 可以添加单个文件或文件夹 git commit -m 'notes' # 添加描述 git push origin master # 将本地文件push到远程库 git push -u origin master # 如果远程库是空的,第一次push需要加-u远程库比如test
git clone git@github.com:shutongcs/test.githttps://www.liaoxuefeng.com/wiki/896043488029600/900003767775424
利用分支进行版本控制修改,在分支上完成功能,再提交到主分支
git branch <name> # 创建分支 git switch <name> # 切换分支 git branch # 查看分支 git merge <name> # 合并分支name到当前分支 git branch -d <name> # 删除分支 git tag <name> # 向当前branch打标签 git tag # 查看所有标签错误:Write failed: Broken pipe 有时在执行 pull 或者 push 操作时,会出现如下错误: packet_write_wait: Connection to 192.30.255.113 port 22: Broken pipe 如果出现这一问题,请编辑 /etc/ssh/ssh_config 文件: 1
sudo vim /etc/ssh/ssh_config在文件中添加如下配置:
Host * ServerAliveInterval 60