Last active
January 24, 2019 06:34
-
-
Save zhmushan/49555c9829f686a7210627796b68ad9a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### 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 | |
``` |
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
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