First GitHub project
This was made following this tutorial.
Terms:
- Making a branch makes a copy of main
- You can make edits to the branch and then merge it with main later
- It is similar to making different versions of a file (i.e. version-1.text, version-2.tct, etc)
- Commits
- Saved changes is a commit
- Every commit has a commit message (a description of why the change was made)
- Pull request
- Propose your changes for someone to review and "pull in your contribution" and merge them into their branch
- "Pull requests show 'diffs', or differences, of the content from both branches" - "Changes, additions, and subtractions are shown in green and red"
Things to remember:
- Create a branch to make a copy of main and make edits to that copy
- 1.a. Changes to that copy are called commits
- 1.b. There is a commit message for every commit
- Once all edits are done, create a pull request to merge that branch with main
- 2.a. Pull requests have a descriptive message associated with it
- 2.b. After the branch is merged with main, delete the branch
- 2.b.I. After branch merges, main has been updated with the changes from the branch