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/