-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
git.txt
71 lines (48 loc) · 1.72 KB
/
git.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
### ihs
https://imgbb.com
https://7up.pics
https://imgtp.com
https://mjj.today
https://imgs.wiki
https://png.cm
https://cdnjson.com
https://www.hd-r.cn
https://www.picgo.net
https://im.ge/upload
https://upload.cc
https://www.imglink.cc/login
### 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 rm -r --cached mydir //删除mydir文件夹,-n 即为展示不删除
git fetch --all //指令是下载远程仓库最新内容,不做合并
git reset --hard origin/master //指令把HEAD指向master最新版本
git pull //强行合并
git fetch //下载远程仓库内容/(不同的下载,相同的留下)兼容
git merge //合并
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)
* [那些在线的Jupyter](https://blog.csdn.net/hxpjava1/article/details/86763331)
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`