记录一下git使用。
初次使用
- 设置Email和名字。
$ git config --global user.name "John Doe" $ git config --global user.email johndoe@example.com
- 修改vim为默认编辑器
$ git config --global core.editor vim
- d
项目开始
- remote add
# 添加远程仓库路径 $ git remote add github git@github.com:yyfrankyy/search.git # 实际上,pull 就是 fetch + merge $ git pull github --all --tags
项目中途
命令
- git remote命令,看这里。
- git config配置文件