Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save CervAnn/264ad3aa0bf32a2b2fe06d142646289e to your computer and use it in GitHub Desktop.
Save CervAnn/264ad3aa0bf32a2b2fe06d142646289e to your computer and use it in GitHub Desktop.
Mod 0 Session 4 Practice Tasks

Session 4 Practice Tasks

The assignments listed here should take you between 1.5 and 2 total hours.

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.

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.txt and travels.txt.
  2. Initialize git, and your two files, and make an initial commit.
  3. Use your text editor to open hobbies.txt.
  4. Add some text about your hobbies.
  5. Add the changes and commit.
  6. Use your text editor to open travels.txt.
  7. Add some text about your favorite vacation or travel experience.
  8. Add the changes and commit.
  9. On GitHub, create a new repository.
  10. Add the remote to your local repository.
  11. Push your repository to GitHub.
  • Paste the link to your repository here:

https://github.com/CervAnn/mod0_Session4_homework

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 Session 4 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.
  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.

Task 3: Practicing Markdown (40 min)

Create a new gist of your own by clicking the New Gist button in the upper right-hand corner of the screen. Create a "Beginners Guide to Git" documenting your git knowledge so far using Markdown. Incorporate each of the following features into your Gist:

  • at least two headings of different sizes

  • at least one numbered list

  • at least one bullet point list

  • at least one bold word/phrase

  • at least one italic word/phrase

  • at least one code block

  • at least one inline code block (greyed text)

  • at least one image

  • Paste the link to your gist here:

https://gist.github.com/CervAnn/23a6791afe1143f8923d72b3e28e9c7d

@CervAnn
Copy link
Author

CervAnn commented Feb 27, 2019

I'm working on figuring out how to add an image to Git - I'm sorry for the delay!

@katiescruggs
Copy link

Super nice explanation of git! I feel like it could be a good blog post since it's written in such a how-to way!

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