Created
September 29, 2020 16:52
-
-
Save matteodelucchi/96d77c49cf5e0be61e3b33e78c878a90 to your computer and use it in GitHub Desktop.
Setup Bookdown project with git and github
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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