Skip to content

Instantly share code, notes, and snippets.

@matteodelucchi
Created September 29, 2020 16:52
Show Gist options
  • Save matteodelucchi/96d77c49cf5e0be61e3b33e78c878a90 to your computer and use it in GitHub Desktop.
Save matteodelucchi/96d77c49cf5e0be61e3b33e78c878a90 to your computer and use it in GitHub Desktop.
Setup Bookdown project with git and github
# Remove files we don't need
rm .travis.yml DESCRIPTION Dockerfile _build.sh _deploy.sh now.json .gitignore
# create new .gitignore
echo "
# don't push local rendered files in master branch
_book/
_bookdown_files/
libs/
**/*.bib
**/*.html
# ignore all html files except:
!**/mathjax_header.html
# R and Rstudio specific files
.Rproj.user
.Rhistory
.RData
.Ruserdata" > .gitignore
# Initialize a new git repository
git init
git add .
git commit -m "initial commit"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment