Skip to content

Latest commit

 

History

History
105 lines (72 loc) · 2.96 KB

README.md

File metadata and controls

105 lines (72 loc) · 2.96 KB

GIT

commit

  • 修改commit信息

    修改上一条commit信息

    git commit --amend -m "new message"
    git commit --amend  # 会打开文本编辑器,显示上一次提交的消息

log

git log onelinegit log --pretty=oneline 的区别:

报错

remote: Support for password authentication was removed on August 13, 2021. fatal: Authentication failed fo ...

✅在 github/Settings/Developer Settings/Personal access tokens 生成一个tocken,再 git remote set-url origin https://<token>@github.com/<name>/<repo_name>.git ,连接到远程仓库。


Failed to connect to github.com port 443: Connection refused

✅设置->网络和Internet->代理,查看本机系统端口号

git config --global http.proxy 127.0.0.1:<your_port>

git config --global https.proxy 127.0.0.1:<your_port>

reference from https://blog.csdn.net/qq_40296909/article/details/134285451

Linux

命令

cd ../../ 进入上上级目录

下载源

清华源

/etc/apt/sources.list

# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse

# 预发布软件源,不建议启用
# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse
sudo apt-get update
sudo apt-get upgrade

使用豆瓣源

cd /home/user/
mkdir .pip
vim pip.conf
[global]
index-url = http://pypi.douban.com/simple
[install]
trusted-host = pypi.douban.com

阿里源

[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com