Skip to content

Commit a9cbcd8

Browse files
committed
update
1 parent 9d85630 commit a9cbcd8

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

+16
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,29 @@ git log --pretty=format:"%cn committed %h on %cd"
4747
git log -3
4848
```
4949

50+
##`git remote`
51+
###操作说明
52+
>`git remote rename <old> <new>`: 重命名
53+
`git remote remove <name>`: 删除
54+
`git remote [-v | --verbose] show [-n] <name>…`: 显示远程连接的详细信息
55+
`git remote add [-f] [--[no-]tags] <name> <url>`: 添加远程对应关系
56+
57+
####参数说明
58+
>`-v`: 显示地址
59+
`-f`: 远程对应关系完毕后立即执行 `git fetch <name>`
60+
`--[no-]tags`: 执行 `git fetch <name>` 时是否导入书签
61+
5062
##`git push`
5163
###操作说明
5264
>`git push <remote> <branch>:<rembra>` : 将本地分支的更新,推送到远程主机
5365
`git push <remote> <branch>` : 将本地分支推送与之存在”追踪关系”的远程分支(通常两者同名),如果该远程分支不存在,则会被新建
5466
`git push <remote> :<rembra>` : 删除指定的远程分支
5567
`git push <remote> --delete <rembra>` : 删除指定的远程分支
5668
69+
##`git fetch`
70+
###操作说明
71+
>`git fetch [<options>] [<repository>]`: 从远程仓库获取更新
72+
5773
##`git pull`
5874
###操作说明
5975
>`git pull <remote> <rembra>:<branch>` : 取回远程主机某个分支的更新,再与本地的指定分支合并。

0 commit comments

Comments
 (0)