Skip to content

Instantly share code, notes, and snippets.

@astannard
Created July 13, 2016 07:40
Show Gist options
  • Save astannard/2445fdf52d9cd83fa545ce25957010eb to your computer and use it in GitHub Desktop.
Save astannard/2445fdf52d9cd83fa545ce25957010eb to your computer and use it in GitHub Desktop.
Git workflow for setting up initial project
#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