# Day 12 - Create Repo & Git ## 前言 依照習慣,會在建立`初版`或是`template`的時候,就創Repo,Push Local code to Repo,並用Git做版控。 而這次的SideProject-桌球王是建立好初版後(並format code by prettier)決定push。 >目前還沒建立**前端的萬用template**,希望未來有自己的一版! ## Repo 放 GitHub 也有看其他人放GitLab,但目前沒有在那建立帳號。 所以就以習慣的GitHub為出發。 省略Create 的 GUI 操作,接著依照下面圖,部分在local teminal 打指令初始化Git Repo並push.  > git init // Initialized empty Git repository in BlaBla > git add . > git commit -m "初版" > git branch -M main > git remote add origin https://github.com/goish135/table-tennis-king.git > git push -u origin main  ### Check GitHub page init Status (最後確認有無push成功)  ## Repo url - https://github.com/goish135/table-tennis-king/blob/main/src/App.js
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up