当前位置:   article > 正文

Git 操作笔记/pip换源_pip源路径github

pip源路径github

pip换源

阿里云的源,在cmd命令行中输入上述命令即可

pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/

还原commit

不可逆
 

  1. 1.git log
  2. 2.选择某次提交的commit ID
  3. 3.使用
  4. git reset --hard commit ID

远程查看与断开

  1. git remote -v
  2. git remote remove origin

状态命令

  1. git statu//查看当前状态
  2. git diff readme.txt//查看修改内容

查看自己的用户名和邮箱地址

  1. git config user.name
  2. git config user.email

切換分支、查看分支

  1. 1) 切换到已有分支,
  2. git checkout master
  3. 2)创建并切换到新分支
  4. git checkout -b test
  5. 查看本地分支
  6. git branch
  7. 查看远程分支
  8. git branch -r
  9. 查看所有分支
  10. git branch -a
  11. 把远程Release分支切换到本地新建分支myRelease
  12. git checkout -b myRelease origin/Release


開始設置

  1. git config --glogal user.name "--"
  2. git config --glogal user.email "---@--.com"
  3. git init //初始化

pip永久换源

阿里云的源,在cmd命令行中输入上述命令即可。

pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/不正经/article/detail/546119
推荐阅读
相关标签
  

闽ICP备14008679号