- Create a new repository on GitHub. Do not initialize with README/etc.
- In terminal, navigate to working directory of the project
$ git init$ git add .$ git commit -m "Commit Message"- Note URL from the top of the GitHub repository's Quick Setup page.
$ git remote add origin www.url.git$ git remote -v$ git push origin master
$ git rm --cached filename.ext
$ git add .$ git commit -m "Commit Message"$ git push origin master
Simple bash script to save a little typing:
#!/bin/sh
git add .
git commit -m "automated commit $(date +%Y%m%d)"
git push origin masterAdding an Existing Project to Github
This page was last updated: Wed 01 Nov 2017 09:41:56 AM EDT