pip換源
阿里云的源,在cmd命令行中輸入上述命令即可
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
還原commit
不可逆
?
1.git log2.選擇某次提交的commit ID3.使用git reset --hard commit ID
遠程查看與斷開
git remote -vgit remote remove origin
狀態命令
git statu//查看當前狀態
git diff readme.txt//查看修改內容
查看自己的用戶名和郵箱地址
git config user.namegit config user.email
切換分支、查看分支
1) 切換到已有分支,git checkout master2)創建并切換到新分支git checkout -b test查看本地分支
git branch查看遠程分支
git branch -r 查看所有分支
git branch -a把遠程Release分支切換到本地新建分支myRelease git checkout -b myRelease origin/Release
開始設置
git config --glogal user.name "--"
git config --glogal user.email "---@--.com"git init //初始化
pip永久換源
阿里云的源,在cmd命令行中輸入上述命令即可。
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/