Created
July 13, 2016 07:40
-
-
Save astannard/2445fdf52d9cd83fa545ce25957010eb to your computer and use it in GitHub Desktop.
Git workflow for setting up initial project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Initial Project Setup such as run a yeoman to setup a project | |
#initialize local git directory | |
git init | |
#add everything to git | |
git add . | |
#Now we actually commit the files to git with the message initial | |
git commit -m initial | |
#We want the files off our laptop though if that breaks we still loose everything at the moment | |
# Setup a 3rd part git repo such as github or bitbucket, get the git url from the provider and use below: | |
git remote add origin https://github.com/YOURUSER/YOURREPO.git | |
#Now we have a remote repositry ready and waiting we just need to push our code onto it with: | |
git push -u origin master | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment