Working on your own branch:
- In RStudio, open Tools > Shell [Moving forward all git commands with be entered in the shell]
- Create a new branch in your own name using the Shell, by entering the following command (replace with your name): git checkout -b Usman
- Before you start working on the code, pull from the main branch using the following command: git pull origin main
- once you have made the code changes, commit your change. this can be done in the regular way using RStudio, or by using the following command: git commit -a -m "Your commit message"
- Push changes to the repo using the following command: git push [If this command doesn't work, use this command: git push --set-upstream origin ]
- Open Github and the SECOM repo. You should see an option to create a new Pull Request. Do this and ask your collaborators to review.
- Merge the pull request after approval.
<I would recommend creating a new branch everytime work is started, with the branch name suggesting the work done, e.g, initial-analysis-yourname>