Step 1. Fork a copy from the organization’s repo to your own repo

https://chuangjiaxu.notion.site/Develop-Flow-2b2bbf9bd60d4f059ce28f65ca46ae6a

https://github.com/NTUEELightDance/LightDance-Editor

Untitled

Step 2. Clone the fork to your local machine

# USERNAME – your Github user account name.
git clone [email protected]:${USERNAME}/22-robot-dog.git

# Don't push to the upstream main
git remote set-url --push upstream no_push

# check your setup
git remote -v

Screen Shot 2021-12-07 at 9.02.37 PM.png

Step 3. Create a Github Issue on ntueecamp/22-robot-dog

沒錢用 Jira,只好用 Github Issues

Untitled

Untitled

Untitled

Step 4. Create a local branch for your contribution

cd 22-robot-dog
# Make your local main up-to-date
git checkout main
git fetch upstream
git rebase upstream/main

# You can check your local commits
# make sure they are the same as the remote NTUEELightDance/LightDance-Editor repo
git log --oneline

# Create a new branch for the new issue {TYPE}-#{ISSUE_ID}
# Types: bug, feature
git checkout -b {TYPE}-#{ISSUE_ID}
# Example
# git checkout -b feature-#9   

Step 5. Develop & Create commits

git add ${edited files}
git commit -m "{bug|feature}-#{ISSUE_ID} ${Commit Message}"
# Example
# git commit -m "feature-#9. Update pull_request_template"

gmareStep 6. Sync your local branch with upstream/main

git fetch upstream
git rebase upstream/main

Step 7. Push your local branch to your repository

ps. 不是 NTUEELightDance/LightDancee-Editor,而是 <你的 Github>/LightDance-Editor