location: Diff for "RStudio_Git"

Institute of Mathematics - PublicMathWiki:

Differences between revisions 11 and 13 (spanning 2 versions)
Revision 11 as of 2019-09-12 09:44:01
Size: 1522
Editor: megger
Comment:
Revision 13 as of 2019-09-12 09:51:36
Size: 1641
Editor: megger
Comment:
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:

==== Content: ====

 * Create RStudio Project from Git Repository
 * Commit and Push to the Repository
Line 6: Line 11:
 * From the "File" menu select "new Project..." {{attachment:01_rstudio_file.png}}
 * In the dialog choose "Version Control" {{attachment:02_version_control.png}}
 * Next choose Git {{attachment:03_git.png}}
 * Enter the url of your Git repository and choose a unique name for the project. Change the Project location if you like. Then press "Create Project" {{attachment:04_create_project.png}}
 * From the "File" menu select "new Project...". {{attachment:01_rstudio_file.png}}
 * In the dialog choose "Version Control". {{attachment:02_version_control.png}}
 * Next choose Git. {{attachment:03_git.png}}
 * Enter the url of your Git repository and choose a unique name for the project. Change the Project location if you like. Then press "Create Project". {{attachment:04_create_project.png}}
Line 11: Line 16:
 * If the project was created successfully you will now see the project path and the project files in the Files panel (bottom right panel) {{attachment:051_finished.png}}  * If the project was created successfully you will now see the project path and the project files in the Files panel (bottom right panel). {{attachment:051_finished.png}}
Line 15: Line 20:
 * From the "Git" menu select "commit" {{attachment:06_commit.png}}
 * In the newly opened window choose the files that you would like to commit and write a commit message. It won't work if you leave the message empty! Then press "commit" {{attachment:07_choose_files.png}}
 * Check whether there were any errors and then the close the dialog {{attachment:08_close.png}}
 * Click on "push" {{attachment:09_push.png}}
 * From the "Git" menu select "commit". {{attachment:06_commit.png}}
 * In the newly opened window choose the files that you would like to commit and write a commit message. It won't work if you leave the message empty! Then press "Commit". {{attachment:07_choose_files.png}}
 * Check whether there were any errors and then the close the dialog. {{attachment:08_close.png}}
 * Click on "push". {{attachment:09_push.png}}
Line 20: Line 25:
 * Check whether there were any errors and then the close the dialog {{attachment:10_push_success.png}}  * Check whether there were any errors and then the close the dialog. {{attachment:10_push_success.png}}

Use Git in RStudio

Content:

  • Create RStudio Project from Git Repository
  • Commit and Push to the Repository

Create RStudio Project from Git Repository

  • Login with your uzh shortname at https://rstudio.math.uzh.ch

  • From the "File" menu select "new Project...". 01_rstudio_file.png

  • In the dialog choose "Version Control". 02_version_control.png

  • Next choose Git. 03_git.png

  • Enter the url of your Git repository and choose a unique name for the project. Change the Project location if you like. Then press "Create Project". 04_create_project.png

  • Enter your Git server login in the dialog. Usually this is your uzh shortname and password. 05_login.png

  • If the project was created successfully you will now see the project path and the project files in the Files panel (bottom right panel). 051_finished.png

Commit and Push to the Repository

  • From the "Git" menu select "commit". 06_commit.png

  • In the newly opened window choose the files that you would like to commit and write a commit message. It won't work if you leave the message empty! Then press "Commit". 07_choose_files.png

  • Check whether there were any errors and then the close the dialog. 08_close.png

  • Click on "push". 09_push.png

  • Enter your Git server username and password in the dialog. Usually this is your uzh shortname and password.
  • Check whether there were any errors and then the close the dialog. 10_push_success.png

PublicMathWiki: RStudio_Git (last edited 2019-10-16 14:47:12 by megger)