From 96235488f8d4ff24e0c62ad786dc4f8f8cc87fdb Mon Sep 17 00:00:00 2001 From: lshep Date: Tue, 1 Aug 2017 08:37:20 -0400 Subject: [PATCH] Update MakeAPackage.Rmd --- vignettes/MakeAPackage.Rmd | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/vignettes/MakeAPackage.Rmd b/vignettes/MakeAPackage.Rmd index d641662..1713bca 100644 --- a/vignettes/MakeAPackage.Rmd +++ b/vignettes/MakeAPackage.Rmd @@ -61,7 +61,15 @@ pane for environments/history/build there is a new tab Git. The package now can start using `git` version control by making commits. To make a commit, you can go to the Git tab, select the check box next to any files that have been modified, added, or deleted that you would like to track, and select `commit`. Enter a new -commit message in the window that pops up and select `commit`. +commit message in the window that pops up and select `commit`. We should tell Git +who we are. In Rstudio, select `Tools -> Shell` and type the following subsituting +your user.email and the user.name (if you have github we recommend using your email +and user.name associated with github here). + +``` +git config --global user.email "" +git config --global user.name "" +``` We coud stop here but we also would like put the package on GitHub. (This assumes you have a github account). First, in Rstudio go to @@ -76,7 +84,7 @@ following subsituting your github user.name and the package name. ``` git remote add origin https://github.com//.git git config remote.origin.url git@github.com:/.git -git pull -u origin master +git pull origin master git push -u origin master ``` For instance, my package repository on github is "myFirstPackage" and my git hub