进入你fork的项目目录,查看当前配置的远程仓库
git remote -v
添加被同步的远程upstream仓库
git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git
再次查看远程仓库可以看到类似的:
git remote -v
origin https://github.com/YOUR_USERNAME/YOUR_FORK.git (fetch)
origin https://github.co
Mac OS X配置笔记
####配置开发环境
**ssh key**
ssh-keygen #生成密钥
在`~/.ssh`下新建`config`文件,内容为自己的Host信息,如:
Host axiaoxin.com
User USERNAME
Port PORT
**安装homebrew包管理工具**
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
完成
......