-
In
RStudio
, go to "File > New Project" -
Click on "Version Control: Checkout a project from a version control repository"
-
Click on "Git: Clone a project from a repository"
-
Fill in the info:
-
Create as a subdirectory of: Browse to where you would like to create this folder
git clone https://github.com/lukembrowne/CDD-appendix.git
git pull
- Each collaborator should create a new branch when they want to make changes or add new features. This can be done using the command: git checkout -b .
- They make changes to the files on their local system and commit the changes using git add . to add all the changes and git commit -m "" to commit the changes.
- After committing the changes, they push the branch to the remote repository using git push origin .
- Then, they should open a Pull Request on Github. This is a request to merge the changes in their branch into the main branch.
- The other collaborators review the changes and either approve or request changes. Once approved, the changes can be merged into the main branch.
- After merging, the branch can be deleted both locally and on the remote repository
- First switch back to the main branch on your local computer
- Then pull in changes
- Delete the local branch: (git branch -d )