Skip to content

Instantly share code, notes, and snippets.

@jusrez
Forked from ericweissman/session3_hw_mod0.md
Last active April 16, 2022 14:38
Show Gist options
  • Save jusrez/6e051d8895a0b780b8dd69bcf37acce3 to your computer and use it in GitHub Desktop.
Save jusrez/6e051d8895a0b780b8dd69bcf37acce3 to your computer and use it in GitHub Desktop.

Session 3 HW

CAREFULLY READ ALL THE INSTRUCTIONS BEFORE STARTING THESE EXERCISES!

To start this assignment:

  1. Click the button in the upper right-hand corner that says Fork. This is now your copy of the document.
  2. Click the Edit button when you're ready to start adding your answers.
  3. To save your work, click the green button in the bottom right-hand corner. You can always come back and re-edit your gist.

Readings + Responses

Git + Github Review (20 min)

Read David's article on Git and GitHub

  • Use the article and outside resources (Google!) to describe the general process of a collaborative git workflow in the space below.
  • The general processs of a collaborative git workflow works like this:
  1. Team Member A creates a local repo on their computer. After creating several commits, they're now ready to work with other team members.
  2. Team Member A creates a remote repo on GitHub and pushes the commits created from the local repo to the remote repo.
  3. Team Member B is ready to help, so they access the remote repo on Github and pull the commits created into their local repo. After making their changes, Team Member B pushes up their new commit to GitHub.
  4. This process continues (Team Member A pulls, then pushes back any new commits they may have created) until the project is completed.

Slack Shortcuts and Features (10 min)

Use Google to go find at least one online resource detailing keyboard shortcuts and/or features that are built into Slack.

  • What resource(s) did you find? Paste them below:

  • This resource helps with keyboard shorcuts that help navigate through Slack quicker. Although you can complete most of these actions by using your mouse and clicking buttons on Slack, mastering these can help you move through the app a lot more quickly and efficiently.

Questions/Comments/Confusions

If you have any questions, comments, or confusions that you would like an instructor to address, list them below:

  • No questions! Just gratitude for the instructors and classmates! Haven't had too much difficulty with Mod 0 so far, but anytime I've been stuck on something, everyone's been super helpful.

Exercises

Task 1: Practicing Git Workflow and Pushing a Repo to GitHub (20 min)

  1. From your command line, make a directory git_and_gh_practice with two files inside: hobbies.md and travels.md.
  2. Initialize git, add your two files, and make an initial commit.
  3. Use your text editor to open hobbies.md.
  4. Add some text about your hobbies.
  5. Add the changes and commit.
  6. Use your text editor to open travels.md.
  7. Add some text about your favorite vacation or travel experience.
  8. Add the changes and commit.
  9. Add a new file to your directory called motivations.md.
  10. Add some text about what is motivating you to change your career.
  11. Add the changes and commit.
  12. On GitHub, create a new repository.
  13. Add the remote to your local repository.
  14. Push your repository to GitHub.

🍩 TURN THIS INTO A LINK TO YOUR REPOSITORY 🍩

Task 2: Forking a Repo on GitHub and Creating a Pull Request (30 min)

  1. Fork the Mod 0 Resources repository.
  2. Open your terminal
  3. Clone your fork to your computer (git clone <url>).
  4. cd into your cloned repository.
  5. Make a new file with the pattern lastname_firstname_resources.md.
  6. Open the file you just created in your text editor.
  7. Create a list of some of your favorite resources so far related to coding/Turing/git/GitHub/etc. These resources do not need to be ones that we've discussed in class. They can be anything that has helped you so far in your journey to learn software development.
  8. Add your changes.
  9. Commit your changes with a properly formatted commit message.
  10. Push your changes to your fork.

This next part is not something we discussed during class and will involve some figuring out on your own.

  1. Use the site:help.github.com Googling trick to search GitHub's help area to figure out how to create a pull request from a fork. It may also be helpful to figure out what pull request means and do additional research!
  2. Open a pull request for your changes.

Once your pull request is open, you're done! You don't need to submit or paste anything since we will get a notification that you've opened a pull request.

IMPORTANT: Do NOT remove this mod0_student_resources directory. You will be using this directory during the next session.

Self Assess

Using the rubric below, assess how you did with these exercises. These are the same metrics your instructors will use to determine if you are prepared for Mod 1!

  • I read carefully read ALL directions
  • I completed all parts of the exercises (not including Extensions) to the best of my ability
  • I used correct syntax, spacing and naming conventions
  • I followed ALL formatting instructions
  • I pushed myself out of my comfort zone and experimented/broke things to try to learn
  • I spent no longer than 20-30 mins Googling a specific problem before asking for help
  • I went back to the lesson to search for clarification before asking for help

Stuck? Having Issues?

Are you stuck on something? Here is the BEST way to ask for help:

  • Start or reply in the thread with the problem you are facing. Be sure to follow the guidelines for asking questions below:
    • I can explain what I am trying to do or accomplish
    • I can what I have tried so far and/or what resources I've tried online
    • I can describe specifically what I am stuck on
    • I provided screenshots and/or code examples to give context
      • If I provided short code examples, I used inline code formatting for single lines of code/error messages
      • If I provided larger blocks of code, I used a code snippet in the correct format (such as .js or .rb)
  • Usually, your classmates will be able to answer your question or point you in the right direction very quickly! If not, an instructor will reply within 24-48 hours
@SageOfCode
Copy link

Hi @jusrez, good work overall on this assignment. Your description of the git workflow is well put, and it sounds like you have a good understanding of the process for a partner project, the flow does get a little more confusing when you have a large team of contributors, but getting those basics down not is a huge help. I took a look at your hobbies, travels, and motivations repo, and it looks like you are definitely gaining a solid understanding of the process of creating a repo and pushing your changes to GitHub.

I am not seeing your pull request in the Mod 0 resources repo, please get that pull request submitted at your earliest convenience, and feel free to reach out if you are running into issues. Please let me know once that is up.

@jusrez
Copy link
Author

jusrez commented Apr 16, 2022

Hey @SageOfCode – thanks for taking the time to review my work. Not sure why you're not seeing my pull request (I googled and followed the instructions on how to create a pull request from a fork using this resource. When I navigate through my profile and click pull request, I see this: Screen Shot 2022-04-16 at 12 55 41 AM

Can you please let me know what I'm doing wrong?

@SageOfCode
Copy link

@jusrez Great, thank you, I am seeing it now. Not sure why I missed it earlier. You are good to go on this assignment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment