mirror of
https://github.com/PGYER/codefever.git
synced 2026-05-31 22:19:22 +08:00
* fix(Useless Code): remove useless code * feat(Deploy Scripts): add deploy scripts * fix(Delopy Script): change settings * fix(Deploy Script): fix ssh-keygen script * fix(Deploy Script): change env file path * feat(Deploy Script): add db migration * fix(Deploy script): change script * feat(Deploy Script): add sql file to create database * fix(Deploy Script): add composer support * fix(Deploy Script): add composer * fix(Service Script): add http gateway * fix(Deploy Script): add git path * fix(Deploy Script): fix setting bugs * fix(Init Script): get user from config * fix(Service): adjust run users * feat(Doc): add doc * fix(Doc): change docs * fix(Deploy script): change owner of storage path * feat: codefever-community documentation system * fix(Doc): doc details page style * feat: fix page navigation * fix(SQL File): fix db file fit MySQL 5.7 * fix(FileTree): empty repository display * fix: fix helper navigation * docs(zh-cn essential part): * fix(Doc Style): change markdown.css * docs(contribution doc): * fix: unified page style * docs(Readme): add readme * build(Build): Co-authored-by: cubic <carneywu@pgyer.com> Co-authored-by: pololi <pololi@pgyer.com> Co-authored-by: yangchen <chenyang@pgyer.com>
32 lines
804 B
Markdown
32 lines
804 B
Markdown
# 远程仓库源管理
|
|
|
|
### 添加远程仓库
|
|
|
|
如果需要快速推送本地仓库到远端仓库, 则需要手动添加远程仓库:
|
|
|
|
```shell
|
|
> git remote add <remote name> <repo url>
|
|
```
|
|
|
|
添加成功后,可以使用 `git push <remote name> <branch>` 向远程仓库推送新改动, 使用 `git pull <remote name> <branch>` 拉取新的改动。
|
|
|
|
> 当使用 `clone` 复制仓库时, 仓库的 `remote` 列表中会自动包含一条叫做 `origin` 的记录, 此记录只想 `clone` 仓库时的仓库地址。
|
|
|
|
### 查看远程仓库列表
|
|
|
|
可以使用以下命令查看远程仓库列表:
|
|
|
|
```shell
|
|
git remote -v
|
|
```
|
|
|
|
### 删除远程仓库
|
|
|
|
可以使用以下命令删除远程仓库:
|
|
|
|
```shell
|
|
git remote remove <remote name>
|
|
```
|
|
|
|
参照: [Git 常用命令参考](git_command_reference.md)
|