# VueCli Git上傳 (6-8) ###### tags: `Vue`、`6. VueCli` 2022.3.11 ### 1. GitHub 新增網上Git資料庫   ### 2. VSCode 新增本地Git資料庫 ``` git init ``` ### 3. 編譯 VueCli **(1) 更改根路徑** ``` publicPath: '/GitHub新增專案名/dist/', ```  **(2) 編譯** ``` npm run build ``` ### 4. 將 .gitignore 檔中 /dist 註解  ### 5. 透過+選擇要推送至git的資料庫 **U代表未推送 、 A代表已推送**   ### 5. 將本地Git檔案,推送至網上Git檔案。 ``` git remote add origin https://github.com/oldmoon0224/aaa.git git branch -M 分支的名稱 git push -u origin ``` ### 6. GitHub 網頁版開啟  ### 成果  ## 備註 ``` git config user.name {{Git名稱}} git config user.email {{Git Email}} ```
×
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