Add Vue.js Project to Github

January 27, 2019

Create a Vue.js project.

Setup Git, create Github account & Repository.

NOTE: When creating a Github repository, don’t need to Initialize this repository with a README or select .gitignore, as Vue.js project (created with vue-cli-3) already created these for you.

NOTE: Don’t need to initialize with git init as it is already done by vue-cli-3 (.git directory already exist).

Add github as remote repository.

git remote add origin git@github.com:USERNAME/PROJECT.git

Push content to remote server.

git push origin master

NOTE: Vue.js already created the first git commit when the project is setup.

Refer to Guide to Git on Github for further git workflow such as add, commit, push, branch, merge, tag, etc.

This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.