Git 操作笔记/pip换源

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/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值