Git 操作笔记/pip换源
生活随笔
收集整理的這篇文章主要介紹了
Git 操作笔记/pip换源
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
pip換源
阿里云的源,在cmd命令行中輸入上述命令即可
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/還原commit
不可逆
?
遠(yuǎn)程查看與斷開
git remote -vgit remote remove origin狀態(tài)命令
git statu//查看當(dāng)前狀態(tài) git diff readme.txt//查看修改內(nèi)容查看自己的用戶名和郵箱地址
git config user.namegit config user.email切換分支、查看分支
1) 切換到已有分支,git checkout master2)創(chuàng)建并切換到新分支git checkout -b test查看本地分支 git branch查看遠(yuǎn)程分支 git branch -r 查看所有分支 git branch -a把遠(yuǎn)程Release分支切換到本地新建分支myRelease git checkout -b myRelease origin/Release
開始設(shè)置
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/總結(jié)
以上是生活随笔為你收集整理的Git 操作笔记/pip换源的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: C# message简单实现窗口间信息接
- 下一篇: Django01: 安装/基础命令/设置