软件

Docker-常用命令

区分容器(container)和镜像(image)的概念oooooooooooooooooo'o,简单来说容器和镜像的关系就像安装在电脑上的系统和未安装的镜像文件,https://blog.csdn.net/chszs/article/details/48252799 镜像简单操作 # 查看本地所有镜像 docker images # 从仓库下载镜像 docker pull imagename # 删除镜像 docker rmi imagename # 给镜像重命名(会生成一个新的镜像) docker tag oldname newname 容器简单操作 # 查看容器[-a 查看所有,包括未运行的] docker ps -a # 启动容器 docker run imagename # 停止容器 docker stop containerid(
ray

git-常用命令

Git 查看容量 git count-objects -vH 撤销 https://blog.csdn.net/guozhaohui628/article/details/78922946 # 撤销add操作 git rm --cached FILENAME # 某个文件 git reset HEAD #上次add的所有文件 # 撤销commit git reset --soft HEAD^ git reset --soft 14de98e ## 切换到某一次提交 git reflog # 查看操作记录,可以看到撤销的提交 git log # 查看提交记录 # 提交了之后发现多添加或者少添加了文件或者写错了注释,使用git add 或者 git rm之后使用以下命令修改提交 git commit --amend
ray

conda-安装包时报错

这些天使用conda安装open3e时报了个离奇的错误,而且这个错误有时出现有时不出现,出现了几次发现原来是windows下使用了clash代理,关了就好: An unexpected error has occurred. Conda has prepared the above report. If submitted, this report will be used by core maintainers to improve future releases of conda. Would you like conda to send this report to the core maintainers? 完整错误如下 $ C:\Users\era\miniconda3\Scripts\conda-script.
ray

VS-Code-Remote-Development-Permission-denied,-please-try-again-

使用微软的远程开发时密码总是不对,发现原来是它自己把用户名给我改成我本机的用户名了,而远程机器上是没有我本地用户的。 我不知道怎么复现那个错误操作了,总之就是如果~/.ssh/config里的配置的Host如果带冒号就会出现这个问题。 错误示例: Host xxxx.net:7822 HostName xxxx.net Port 7822 User root Host xxxx.net:7922 HostName xxxx.net Port 7922 User root 我本意通过端口号区分不同的服务器,但是这样就会导致上述问题,解决办法就是别用冒号。
ray