1. git

遇到 server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none

git config --global http.sslverify false

git 退出nano界面:Ctrl + X然后输入y

1.1. clone

clone branch

git clone -b breast https://.....

Git下放另一个git,在clone的时候:

git clone --recursive

1.2. push更新

git pull origin breast
git add .
git commit -m 'message'
git push origin breast

1.3. pull

git pull

如果更新不能merge,需要stash

git stash

1.4. .gitignore

A collection of useful .gitignore templates

2. diff

3. reset

git log
git reset --hard XXXXXXX

4. requirements.txt

pip install -r requirements.txt

results matching ""

    No results matching ""