Skip to content

添加命令

小弟调调™ edited this page Dec 1, 2016 · 3 revisions

Issues 告诉我

你可以通过 Issues 来告诉我,还没有收录的命令。

Pull requests添加命令

通过Fork 代码,从根目录进入 command 目录里面添加 markdown 文件,可参考其它命令排版方式。

下面是你 Fork 完之后,如果长时间没有更新代码,你需更新上游仓库代码,保持跟你本地仓库同步。

# 列出远程仓库 URL
$ git remote -v
# List the current remotes (列出当前远程仓库)
# origin  https://github.com/user/repo.git (fetch)
# origin  https://github.com/user/repo.git (push)

# 添加上游仓库URL
$ git remote add upstream https://github.com/jaywcjlove/linux-command.git
# Set a new remote (设置一个新的远程仓库)

# 再次列出远程仓库 URL
$ git remote -v
# Verify new remote (验证新的原唱仓库)
# origin    https://github.com/user/repo.git (fetch)
# origin    https://github.com/user/repo.git (push)
# upstream  https://github.com/jaywcjlove/linux-command.git (fetch)
# upstream  https://github.com/jaywcjlove/linux-command.git (push)

# 获取上游代码
$ git fetch upstream

# 检查你的 fork’s 本地 master 分支,如果不在master 分支就切换到该分支
$ git checkout master
# Switched to branch 'master'

# 合并来自 upstream/master 的更改到本地 master 分支上。
$ git merge upstream/master
Clone this wiki locally