R Language - RStudio use Git version control

Creative Commons License Copyright: Attribution, allow others to create paper-based, and must distribute paper (based on the original license agreement with the same license Creative Commons )

1. Configure Git environment

Come on now, it configure the environment, or you develop ah ye
knock blackboard test focus: Git - installation configuration (Linux, Windows dual record)

2. RStudio operation of Git

  • The default has Github, cloud ha code
  • Personal use deepin, so, the following steps are linux interface Ha
    fact of LinuxRStudio Server And Windows RStudioThe same kind of interface 1

2.1 Initialization (one operation only)

Well times are graphical interface, it is still a lot of textures, simple and crude, ruthless people did not talk much

  • New Project
    Here Insert Picture Description
  • Select Version Control
    Here Insert Picture Description
  • Select the Git tool
    Here Insert Picture Description
  • Enter the address of the warehouse 2 , the local path
    warehouses name will be automatically generated based on address of the warehouse, you can also modify their own, like a general default

Here Insert Picture Description

2.2 Push Push New Laws (multiple operations)

  • Push Push: add your own is to modify the code sent to the local code repository in the cloud to facilitate co-workers get the latest code
  • firstCommitsubmit
    Here Insert Picture Description
  • You must leave notes to Commit
    Here Insert Picture Description
  • Commit success
    Here Insert Picture Description
  • againPushPush
    Here Insert Picture Description
  • Push success
    Here Insert Picture Description

2.3 Pull pull the latest warehouse (multiple operations)

  • PullPull: I Get the latest code repository others to push their own local
    Here Insert Picture Description
  • Pull success
    Here Insert Picture Description

Thus, the basic operation is completed


  1. R Language - R installation and RStudio (Linux, Windows dual record) ↩︎

  2. I configured a public key, so the use of SSH address, if not configured public key, select HTTPS address
    SSH public-key setting , here is a tutorial code of clouds, cloud and Github code in fact set up similar ↩︎

Guess you like

Origin blog.csdn.net/nangy2514/article/details/92760486