File tree 1 file changed +16
-0
lines changed
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -47,13 +47,29 @@ git log --pretty=format:"%cn committed %h on %cd"
47
47
git log -3
48
48
```
49
49
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
+
50
62
##` git push `
51
63
###操作说明
52
64
> ` git push <remote> <branch>:<rembra> ` : 将本地分支的更新,推送到远程主机
53
65
`git push <remote> <branch >` : 将本地分支推送与之存在”追踪关系”的远程分支(通常两者同名),如果该远程分支不存在,则会被新建
54
66
`git push <remote> :<rembra >` : 删除指定的远程分支
55
67
`git push <remote> --delete <rembra >` : 删除指定的远程分支
56
68
69
+ ##` git fetch `
70
+ ###操作说明
71
+ > ` git fetch [<options>] [<repository>] ` : 从远程仓库获取更新
72
+
57
73
##` git pull `
58
74
###操作说明
59
75
> ` git pull <remote> <rembra>:<branch> ` : 取回远程主机某个分支的更新,再与本地的指定分支合并。
You can’t perform that action at this time.
0 commit comments