Table of Contents
- Initialize new git repository
- Instruct git to ignore generated files
- Disable Jekyll
- Add all non-ignored files to the git repository
- Commit the changes to make the snapshot
- Create repository on GitHub
- Connect git repository to GitHub remote
- Next: Configure website name, title, author and organization
Previous: Install Rake and Bundler
Tutorial 4
This tutorial…
$ cat > .gitignore << LINES /.awestruct/ /.ruby-* /.sass-cache/ /_site/ /_tmp/ /Gemfile.lock LINES
Note
|
On Windows, run notepad .gitignore, remove all text and paste the content between LINES from above. |
$ git commit -m "Initial import of website sources"
Console output
30 files changed, 18757 insertions(+) create mode 100644 .awestruct_ignore create mode 100644 .gitignore create mode 100644 .nojekyll create mode 100644 Gemfile create mode 100644 Rakefile create mode 100644 _config/site.yml create mode 100644 _ext/pipeline.rb create mode 100644 _layouts/base.html.haml create mode 100644 humans.txt create mode 100644 index.html.haml create mode 100644 javascripts/foundation/foundation.alerts.js create mode 100644 javascripts/foundation/... create mode 100644 javascripts/vendor/custom.modernizr.js create mode 100644 javascripts/vendor/jquery.js create mode 100644 javascripts/vendor/zepto.js create mode 100644 robots.txt create mode 100644 stylesheets/_normalize.scss create mode 100644 stylesheets/_settings.scss create mode 100644 stylesheets/app.scss
Tip
|
Changes are now tracked by git. You can rollback at any time. |
- Owner
-
%USERNAME%
- Repository name
-
writeadapt-%USERNAME%
- Description (optional)
-
An Awestruct demo site
- Options
-
Don’t check "Initialize this repository with a README"
$ git remote add origin https://github.com/%USERNAME%/writeadapt-%USERNAME% $ git push origin master
Important
|
Replace %USERNAME% with your GitHub username.
|