Skip to content

ajmcoqui/git_and_Rprojects

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

R Projects and GitHub

Using Projects

Oh it's easy! Check out the RStudio support page: https://support.rstudio.com/hc/en-us/articles/200526207-Using-Projects

Git - Version Control

Here are some links about Git:

https://medium.com/@garstep/osn-what-the-hell-is-git-6afbe634c4e8
http://rogerdudler.github.io/git-guide/
http://happygitwithr.com/
https://git-scm.com/docs/gittutorial

Some Basic Git Steps on the terminal

1. Create repo on Github

2. Initialize repo on terminal

$ git init
Initialized empty Git repository in dir/.git/
$

3. Set up remote repository address

$ git remote add origin https://github.com/account/repository
$

origin is how the remote repository is named on the server, it can be named anything. Multiple repositories can be assigned to different variables in the same directory.

To check the assigned variables for remote repositories:

$ git remote -v
origin  https://github.com/account/repository (fetch)
origin  https://github.com/account/repository (push)
$

These first 3 steps are done only the first time the git is initiated in that directory.

4. Pull

$ git pull

5. Add

$ git add

See what's added

$ git status

6. Commit

$ git commit -m "Description" filename

You can use the wild card for filename*

7. Push

git push origin master

About

A quick tutorial for using Git with R Studio Projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 100.0%