誤刪 commit 后撤銷
# 刪除指定 commit
git log
git reset --hard xxx # xxx 為 commit sha1 值
git reflog
git reset --hard xxx # xxx 為最前面的索引代碼
本地 clone 的時候出現(xiàn)問題:
解決辦法
獲取遠(yuǎn)程指定分支的過程
# 首先要獲取到遠(yuǎn)程的 master 分支
git branch -c feature/encrypt_chat
git merge origin feature/encrypt_chat
# 設(shè)置http代理
git config --global https.proxy https://127.0.0.1:1080
# 取消http代理
git config --global --unset http.proxy