Update and rename git-init.rtf to git-npm-jupyter.rtf

This commit is contained in:
发霉的橄榄果
2020-06-26 19:45:50 +08:00
committed by GitHub
parent bf0d835b85
commit e83efad5eb

46
git-npm-jupyter.rtf Normal file
View File

@ -0,0 +1,46 @@
### git
git init
git add .
git commit -m "first commit"
git remote add origin https://github.com/hoochanlon/private.git //远程链接
git push -u origin master
git checkout gh-pages //切换分支
git checkout -b gh-pages //创建并切换分支
git push origin branch-name //直接push 到repo的相关分支
git branch -r -d origin/branch-name //删除分支
git push origin :branch-name //删除远程分支
git fetch --all //指令是下载远程仓库最新内容,不做合并
git reset --hard origin/master //指令把HEAD指向master最新版本
git pull //合并
git remote set-url origin repo.git //修改远程仓库地址
### npm
npm login
npm pulish
npm unpublish pkg --force
[npm增删改](https://segmentfault.com/a/1190000017479985)
### jupyter
[jupyter安装及目录生成](https://www.cnblogs.com/jayafsmw/p/12286580.html)
pip国内镜像
* http://mirrors.aliyun.com/pypi/simple/
* https://pypi.mirrors.ustc.edu.cn/simple/
* http://pypi.douban.com/simple/
* https://pypi.tuna.tsinghua.edu.cn/simple/
* http://pypi.mirrors.ustc.edu.cn/simple/
example
`pip install scrapy -i https://pypi.tuna.tsinghua.edu.cn/simple`
`pip3 install jupyter -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com`