Skip to content

Das42/technical_assessment_github

Repository files navigation

Welcome! This repo will show you how to become an honorary member of the annex, and will test your knowledge of Git/GitHub along the way.

Independently complete the steps below once you have finished the GitHub Ultimate course on Udemy. All of the steps should be completed from the command line in your emulator of choice (iTerm2 is what the majority of the team at DAS42 uses, but you are welcome to use Terminal, or another comparable option) unless specified otherwise. Feel free to reach out to Logan at any point during this assignment with any questions you might have.

Step 1:

  • In your web browser of choice, fork this repo on GitHub.
    • hint: Checkout the top right of the repo page.

Step 2:

  • Open your CLI emulator of choice (iTerm2, Terminal, etc.)
  • In your ~/Desktop/ directory, create a new directory called git_knowledge_check and move into it.
    • hint: mkdir cd
  • Once there, create another new directory named forked_repo and move into it.

Step 3:

  • Clone your forked copy to this forked_repo directory using SSH and cd into it.
    • hint: Review Session 7 of the Udemy training course.

Step 4:

  • Create a new branch called personal, and switch to it.

Step 5:

  • Edit the jokes.md file by adding your name and a joke in the existing format.
  • Stage and commit these changes and be sure to include a commit message.
    • hint: This can be done with one command.

Step 6:

  • Push your local personal branch upstream to your remote repo.
    • hint: If you try to accomplish this using git push alone, you will get an error. This is because your personal branch only exists locally, and doesn't yet have an upstream origin in your remote repo. To remedy this, you will need to initialize an upstream origin for your local person branch. Review Lecture 94 of the Udemy training course if you need a refresher on how to do this.
  • Check that your branch is up to date using git status.

Step 7:

  • Look at the collaborators.txt file and remember who the last person listed is.
    • Don't make any edits to this file just yet.
  • Hop over to GitHub in your web browser and create a pull request between your forked personal branch and the origin master branch Das42/onboarding_git_knowledge_check.

Step 8:

  • Send Logan a message on Slack letting him know that you have created the pull request. Be sure to include the following things:
    1. your GitHub username
    2. the person who's name you saw at the end of the collaborators.txt file
    3. a link to your forked copy of the original repo
      • should look something like https://github.com/YOURUSERNAME/onboarding_git_knowledge_check

Step 9:

  • Once your pull request has been approved, and Logan has sent you an invite to be a Collaborator, accept the invite and return to your CLI.
  • Create a new directory in your ~/Desktop/git_knowledge_check/ directory called origin_repo.
    • Your ~/Desktop/git_knowledge_check/ directory should now contain two directories:
      • forked_repo
      • origin_repo
  • Using the same method as Step 3 above, clone the origin repo from GitHub into ~/Desktop/git_knowledge_check/origin_repo.
    • You should now have a local repo of the original repo in your origin_repo directory.
      • hint: It should look something like this:
        • ~/Desktop/git_knowledge_check/origin_repo/onboarding_git_knowledge_check

Step 10:

  • Create a new branch, calling it your first name, and switch to it.

Step 11:

  • Create a text file in your personal branch called YOURNAME_two_truths_one_lie.txt and populate it accordingly.
  • Add your name to the Collaborators.txt file as well as the date you are completeing this step.
  • Stage this file and commit these changes.
    • Be sure to include a commit message.

Step 12:

  • Switch to your local master branch and make sure it is up to date with the upstream origin.
    • If it is not, pull down the changes.
    • hint: git status git fetch git pull

Step 13:

  • In the CLI, merge your local master branch with your FIRSTNAME branch.
  • After doing so, stage your changes and push your local master branch up to the remote repo.

Step 14:

  • Hop over to the master branch of the origin repo on GitHub and verify that:
    1. your unique two_truths_one_lie file is in the master branch
    2. your joke is present in the jokes.md file in the master branch
    3. your name appears in the collaborators.txt file

Step 15:

  • Message Logan once you've completed these steps.

Step 16:

  • Await Curtis's approval of your joke (minimum of two chuckles required) and eagerly await your letter of acceptance as an honorary member of the annex.

Step 17:

  • Pat yourself on the back, because you're done.

About

Git CLI knowledge check for DAS42 new hires.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published