Skip to main content

Onboarding for Tech Team

Onboarding

How does the Tech Team work?


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

Cloning Repository

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 fetch and git 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/carousel and 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