Skip to content

SWF-Lab/Github-Breakdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Git Workflow

1677113505643

  1. clone repo 然後確認 compile, setup 都沒有問題
  2. 在 repo 裡面建立一個 branch,要在 local 從 master checkout 一個 branch 出去
    1. 想要創建同時切換到新 branch:$ git checkout -b <branch-name>
    2. 想要創建新的 branch 但不切換:$ git branch <branch_name>
  3. 撰寫測試(或修改程式碼)、commit 後 push 回 remote
  4. 往 Master 發一個 Pull Request
  5. 等人 Review 然後依照 comment 修正
  6. 沒問題這個 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 跑一些基本的做驗證

S__79732739

Rules

PR Problem

Conflict

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

Squash

https://stackoverflow.com/questions/5189560/how-do-i-squash-my-last-n-commits-together

gitignore

# 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

Others

gh-pages

GitHub Profile README


Reference

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages