- clone repo 然後確認 compile, setup 都沒有問題
- 在 repo 裡面建立一個 branch,要在 local 從 master checkout 一個 branch 出去
- 想要創建同時切換到新 branch:
$ git checkout -b <branch-name>
- 想要創建新的 branch 但不切換:
$ git branch <branch_name>
- 想要創建同時切換到新 branch:
- 撰寫測試(或修改程式碼)、commit 後 push 回 remote
- 往 Master 發一個 Pull Request
- 等人 Review 然後依照 comment 修正
- 沒問題這個 branch 就會 merge
git clone
git checkout -b add-my-context
# Write some code...
git add .
git commit -m "add-my-context-v1"
git push
# Pull Request
- 現行的開發團隊基本上都會透過這份文件來建置 Work Flow還有其他額外功能 audit branch & releasing
- flowPR 會跑 CI build,流程可以參考這個檔案,推上去之前可以先在 local 跑一些基本的做驗證
This branch has conflicts that must be resolved.
git checkout master
git pull
git checkout <branch>
git merge master
[ ... resolve any conflicts ... ]
git add [files that were conflicted]
git commit
git push
https://stackoverflow.com/questions/5189560/how-do-i-squash-my-last-n-commits-together
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*
# IDE
.vscode
.idea
# Dependency directories
node_modules/
# TypeScript cache
*.tsbuildinfo
# Output of 'npm pack'
*.tgz
# Optional eslint cache
.eslintcache
# Generate output
dist
build
cache
# vercel
.vercel
# typescript
*.tsbuildinfo
next-env.d.ts
# Optional npm cache directory
.npm
.DS_Store
# Auto Generated PWA files
**/public/sw.js
**/public/workbox-*.js
**/public/worker-*.js
**/public/sw.js.map
**/public/workbox-*.js.map
**/public/worker-*.js.map
- awesome-github-profile-readme
- GitHub Readme Stats
- GitHub Profile README Generator
- Dev Metrics in Readme with added feature flags 🎌