Onboarding for Tech Team
Onboarding
How does the Tech Team work?
Git/Github
Making Your First Contribution!
This will be instructions on how to make your first contribution, with the example of adding John Doe to the list of contributors.
Cloning the repository.
Creating a new branch.

Making the change!
Adding a file to a commit.
Checking changes to be committed.
Committing changes.
Pushing the commit.

This is because when we create the branch contributors/johnDoe, we only created it locally and it does not exist on the Github repository. Therefore, we must run the command shown.
Once the branch is set up remotely, or if the branch already existed remotely and was not created locally, we can simply use git push.
Creating a pull request.
If you don't see it, you can also create a new pull request by navigating to the "Pull requests" tab and selecting "New pull request".
Approvals and Merging.
You will also see a list of approvals, some of which are run automatically. It is also necessary for at least one person to review your pull request before you can merge it with the main branch. Once your pull request is approved, hit squash and merge. You're done!
Git/Github Quick Reference
New to Git and Github? Checkout these resources:
Overview of Git and Github: https://wiki.sitblueprint.com/books/onboarding/page/contributing-to-blueprint-gitgithub
Full comprehensive guide/walkthrough of Git and Github: GitHub Foundations - Training | Microsoft Learn
If you prefer a comprehensive book: https://git-scm.com/book/en/v2
Or comprehensive video: Git Tutorial for Beginners: Learn Git in 1 Hour
Git Clone
git clone [<repository>]
-
Creates local copy of the repository stored on Github
-
<repository>the repository you want to clone
Git Pull
git pull
-
Runs
git fetchandgit merge -
Pulls code from the remote repository (on Github) to your local repository and merges into your local repository
Git Checkout
git checkout [-b] [<branch>]
-
Used to switch branches
-
<branch>to specify which branch you want to switch to-
Switches branch to
feat/carousel -
E.g.,
git checkout feat/carousel
-
-
[-b]to create a new branch-
feat/used for feature branches (e.g., feat/carousel) -
bug/used for bugs (e.g., bug/navbar-text-resizing) -
Naming conventions:
-
E.g.,
git checkout -b feat/carousel -
Creates a new branch called
feat/carouseland switches to that branch
-
Git Add
git add [<path>]
-
Used to ‘stage’ or add contents of file to next commit
-
<path>path of the file to be added-
E.g.,
git add myFile.txt -
Adds all changes made to myFile to the next commit
-
Git Commit
git commit [-m <message>]
-
Used to create a commit
-
-m <message>message to be included with commit-
E.g.,
git commit -m “changes made to formatting” -
Creates a commit with staged changed with the message “changes made to formatting”
-
Git Push
git push
-
Used to push committed changes to remote repository on GitHub