Skip to content

Instantly share code, notes, and snippets.

@zhmushan
Last active January 24, 2019 06:34
Show Gist options
  • Save zhmushan/49555c9829f686a7210627796b68ad9a to your computer and use it in GitHub Desktop.
Save zhmushan/49555c9829f686a7210627796b68ad9a to your computer and use it in GitHub Desktop.
#### git clone
```
下载 git clone <url>
```
#### git remote
```
查看详情 git remote -v
更换源 git remote set-url <name> <url>
删除源 git remote rm <name>
添加源 git remote add <name> <url>
```
#### git pull
```
拉取远程代码 git pull <remote> <branch>
```
#### git add
```
添加所有修改 git add .
```
#### git commit
```
提交修改 git commit -m <message>
```
#### git push
```
推送至远程仓库 git push <remote> <branch>
```
### 推送代码至 `gh-pages`
```
git add -f dist
git commit -m "msg"
git subtree split --prefix dist -b gh-pages
git push -f origin gh-pages:gh-pages
```
@zhmushan
Copy link
Author

chore: add Oyster build script
docs: explain hat wobble
feat: add beta sequence
fix: remove broken confirmation message
refactor: share logic between 4d3d3d3 and flarhgunnstow
style: convert tabs to spaces
test: ensure Tayne retains clothing

@zhmushan
Copy link
Author

git remove add upstream https://github.com/xxx
git fetch upstream
git rebase upstream/master
git push origin master
git checkout -b my_branch
git add .
git commit -m "..."
git push origin master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment