pip换源
阿里云的源,在cmd命令行中输入上述命令即可
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
还原commit
不可逆
1.git log
2.选择某次提交的commit ID
3.使用
git reset --hard commit ID
远程查看与断开
git remote -v
git remote remove origin
状态命令
git statu//查看当前状态
git diff readme.txt//查看修改内容
查看自己的用户名和邮箱地址
git config user.name
git config user.email
切換分支、查看分支
1) 切换到已有分支,
git checkout master
2)创建并切换到新分支
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/