Conclusion
Projects Involved: OBC and GCS
Concepts: Git
Abstract:
This task covers saving your progress so far, and making a push to github. It will also cover how to write a pull request for your code.
Files Involved:
- All of them
Base Steps:
For both projects:
1. Check your git status
It should tell you what branch you are on, how many files are changed/added. If you forgot to make a new branch before starting to work on onboarding:
2. Stage your changes
Staging is the process of choosing what files you want to 'commit'. In this case, we can stage all of the changes we made so far:
The next step is to 'commit' your changes. This will record the changes you chose to stage into the git history.
3. Push your change
Finally, we can push our changes to remote! (Github) If you followed the how2contribute documentation clearly, you should have your SSH credentials already.
If you get an error that you don't have correct access rights, it is due to the fact that the container you are working on doesn't have access to the SSH credentials we setup earlier. Refer to the tip below to set up git credentials inside the container:
4. Opening a Pull Request
Lastly, we want to open a "Pull Request", which is code review done prior to merging your changes into a different branch. (We won't be actually merging anything, but we will use the feature to review your code as the end to your onboarding.)
Navigate to github, and go to the Pull Request tab under the each project. You should find the option to open a Pull Request based on your recent pushes. Write a short description about what the changes made in this PR entails, but focus on anything you found hard or interesting. Feel free to mention any unique features you might have added to the project.