first commit
This commit is contained in:
commit
ba848e218d
1001 changed files with 152333 additions and 0 deletions
21
Git/Git多远程仓库.md
Normal file
21
Git/Git多远程仓库.md
Normal file
|
@ -0,0 +1,21 @@
|
|||
```
|
||||
git remote add origin https://github.com/xhupo/Docs.git
|
||||
git remote set-url --add origin https://114.215.177.69:suipeng_wang/om-doc.git
|
||||
```
|
||||
配置文件会变更如下:
|
||||
```
|
||||
[core]
|
||||
repositoryformatversion = 0
|
||||
filemode = false
|
||||
bare = false
|
||||
logallrefupdates = true
|
||||
symlinks = false
|
||||
ignorecase = true
|
||||
[remote "origin"]
|
||||
url = git@114.215.177.69:suipeng_wang/om-doc.git
|
||||
fetch = +refs/heads/*:refs/remotes/origin/*
|
||||
url = https://git.xhupo.com/xhupo/Docs.git
|
||||
[branch "master"]
|
||||
remote = origin
|
||||
merge = refs/heads/master
|
||||
```
|
5
Git/使用curl命令下载Gitlab中的单个文件.md
Normal file
5
Git/使用curl命令下载Gitlab中的单个文件.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
```bash
|
||||
# token需要生成
|
||||
# files后面跟文件的路径,%2F为/
|
||||
curl -o wep.war --header "PRIVATE-TOKEN: [token-id]" "http://[gitlabxxxx]/api/v4/projects/[project-id]/repository/files/[wep%2F20220216%2Fwep.war]/raw?ref=master"
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue