-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
65d582a
commit b0979a8
Showing
2 changed files
with
49 additions
and
2 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#### 1. Sign up at GitHub.com ################################################ | ||
|
||
## If you do not have a GitHub account, sign up here: | ||
## https://github.com/join | ||
|
||
# ---------------------------------------------------------------------------- | ||
|
||
#### 2. Install git ########################################################## | ||
|
||
## If you do not have git installed, please do so: | ||
## Windows -> https://git-scm.com/download/win | ||
## Mac -> https://git-scm.com/download/mac | ||
## Linux -> https://git-scm.com/download/linux | ||
## or: $ sudo dnf install git-all | ||
|
||
# ---------------------------------------------------------------------------- | ||
|
||
### 3. Configure git with Rstudio ############################################ | ||
|
||
## set your user name and email: | ||
#install.packages(c("usethis", "gitcreds")) | ||
usethis::use_git_config(user.name = "jinseob Kim", user.email = "[email protected]") | ||
|
||
## create a personal access token for authentication: | ||
usethis::create_github_token() | ||
## in case usethis version < 2.0.0: usethis::browse_github_token() (or even better: update usethis!) | ||
|
||
## Copy and paste your token and press enter | ||
gitcreds::gitcreds_set() | ||
|
||
# ---------------------------------------------------------------------------- | ||
|
||
#### 4. Restart R! ########################################################### | ||
|
||
# ---------------------------------------------------------------------------- | ||
|
||
#### 5. Verify settings ###################################################### | ||
|
||
usethis::git_sitrep() | ||
|
||
## Your username and email should be stated correctly in the output. | ||
## Also, the report shoud cotain something like: | ||
## 'Personal access token: '<found in env var>'' | ||
|
||
# ---------------------------------------------------------------------------- | ||
|
||
## THAT'S IT! |