记录一些操作

ubuntu系统:

apt换源:

sed -i "s/archive.ubuntu.com/mirrors.tuna.tsinghua.edu.cn/g" /etc/apt/sources.list

gpg错误:

gpg --keyserver keyserver.ubuntu.com --recv A4B469963BF863CC
gpg --export --armor A4B469963BF863CC | apt-key add -

conda换源:

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes

pip换源:

pip install --user --upgrade pip
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

mkdir ~.pip
vim ~.pip/pip.conf
[global]
index-url = https://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host = mirrors.aliyun.com

pypi 清华大学源:https://pypi.tuna.tsinghua.edu.cn/simple
pypi 腾讯源:http://mirrors.cloud.tencent.com/pypi/simple
pypi 阿里源:https://mirrors.aliyun.com/pypi/simple/
pypi 豆瓣源 :http://pypi.douban.com/simple/

git:

首先需要把整个仓库clone到本地

git clone                                      #"SSH地址"
git branch -a                                  #查看所有分支
git branch "Your branch"                       #创建分支
git checkout "Your branch"                     #切换分支
git pull origin "Your branch"

更新git命令:

git add .                                      #上传三件套
git commit -m "xxx"
git push origin "Your branch"

git lfs上传命令:

git lfs track *.pth
git lfs track *.pt
git lfs track *.om
git lfs track *.onnx
git lfs track *.bin
git lfs track *.trt
git lfs track *.rknn
git lfs track *.wk
git lfs track *.caffemodel


git lfs track 文件名
git add .gitattributes 
git add .
git commit -m "update model" 
git commit -m "update code"
git push -u origin master

子模块上传:

git submodule add http://*************** 
如果有报错:
git submodule add --force http://***************
git status
git add .
git commit -m "update model" 
git commit -m "update code"
git push -u origin master
子模块拉取:
git submodule update --init --recursive
子模块更新:
git submodule update --remote

导入环境变量:

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/###/common_nnie_sdk/hi3559/lib
export LD_LIBRARY_PATH

mount:

mount -t nfs -o nolock -o tcp -o rsize=32768,wsize=32768 192.168.51.104:/home/john/data/NNIE/ ###
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值