New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gitignores and git workflow #129
Comments
I'm actively developing a book in Bookdown. It's not quite live yet so you can't look at code yet, but it will be sometime the middle of the week. Meanwhile, here's the .gitgignore I'm currently using: .Rproj.user IIRC everything except |
You don't actually need .*.Rnb.cached anymore (that was a notebook thing On Sun, Jun 5, 2016 at 1:42 PM, M. Edward (Ed) Borasky <
|
For a default build that is bare-n-bones see: https://github.com/coatless/statprogramming GitHub ignore:
Slightly more content: https://github.com/coatless/timeseriesisgreat And even more content as it goes live in under a week: https://github.com/daviddalpiaz/appliedstats These are all setup to autodeploy to GitHub pages via Travis-CI, so we have: https://coatless.github.io/statprogramming |
Thanks for the examples @znmeb @coatless! I am ambivalent about gitignoring But I do want to gitignore stuff that is non-diff-friendly (so maybe |
@jennybc As an aside, we started our book when bookdown was in it's infancy. So our gitignore and general structure is an example of evolution, instead of a grand plan. |
@jennybc How big is the book? Mine's still small and young and not in need of me losing sleep over continuous integration. My workflow typically is as many small changes / commits as I can keep in my head, "Clean all", "Build Book", open a shell, "cd _book; netlify deploy". I went "live" yesterday so people can watch it happen. |
@znmeb I'm trying this out on something small (a tutorial for useR). But I need to rethink the STAT 545 content, so this also serves as a pilot study for that. In that case I would want to deploy via continuous integration. In STAT 545 I also get a lot of nontrivial contributions from others (e.g. from TAs), hence my desire to make it easier to understand the implications of proposed changes to source. |
@jennybc I'll be opening up my book source repo in the next day or so. It's on GitLab now but I need to move it here because Netlify can't pull from GitLab. I probably should have put it here to begin with, since the "Edit" links were designed for GitHub fork / pull request workflows. |
If you plan to use travis-ci to auto-deploy to GitHub pages, then the See: https://github.com/daviddalpiaz/appliedstats/commits/gh-pages and Auto-output Commit: Code commit: The benefit of removing the
|
OK - my repo is live: https://github.com/znmeb/mastering-dfs-analytics-bookdown. |
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary. |
I have started a bookdown project by cloning this:
https://github.com/rstudio/bookdown-demo
And am also scrutinizing source vs. rendered for hadley/r4ds and csgillespie/efficientR to figure out what the heck I'm doing.
Is there advice on what we should gitignore? The
.gitignore
file in the demo bears little resemblance to what people seem to be doing in real life.Any or all of this would be great: advice here, advice in Bookdown: Authoring Books with R Markdown, or different (more realistic)
.gitignore
in the demo project. I'm hoping for info on what's source vs output vs vendored, what I could safely delete + rebuild, etc. I can make good guesses but it's alot to take in...The text was updated successfully, but these errors were encountered: