Skip to content

Instantly share code, notes, and snippets.

@mcat56
Forked from rwarbelow/mod_0_session_3_readings.md
Last active July 4, 2019 14:21
Show Gist options
  • Save mcat56/bd554fe9056816707b7e0c9c9b763a3d to your computer and use it in GitHub Desktop.
Save mcat56/bd554fe9056816707b7e0c9c9b763a3d to your computer and use it in GitHub Desktop.
Mod 0 Session 3 Readings

Session 3 Readings and Responses

The readings and responses listed here should take you approximately 20 minutes total.

To start this assignment:

  1. Click the button in the upper right-hand corner that says Fork. This is now your copy of this 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.

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:
  1. https://get.slack.help/hc/en-us/articles/201374536-Slack-keyboard-shortcuts https://get.slack.help/hc/en-us/categories/200111606-Using-Slack
  • What are three Slack shortcuts and/or features that will contribute to your productivity?
  1. Shift + enter - create a new line in a message - helps readability a lot
  2. Command shift C - codeblock selected text - to show code text in code format - shortcut and helps readability
  3. E then 1-9 - view and select emojis - emojis are great!
  4. Command + U - upload file
  5. Command + / - show shortcuts

The idea of the staging area is frequently one of the trickiest concepts to wrap your head around when you're first learning git. Read the question and answers (or do your own Googling on the git staging area). Then, create your own metaphor comparing the staging area to something in real life.

  • Type your metaphor below: Staging area is like the "pass" in kitchen in a restaurant - where dishes plated and picked up by wait staff.

         -git add would be like adding a dish to the pass before it goes out to the customer
         -git status  :  seeing what plates are up and ready to be taken out 
         -git-commit : when plates are ready they can be taken to customer 
         
     So the pass is like the staging area in that it is a place where you can gather files/dishes and
     manage those items before making concrete changes/taking them to the customer. You can have many
     things in the staging area at once, and manage what gets committed and what may need additional
     changes. 
    

Questions/Comments/Confusions

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

Kind of confused on Git gui - this was in the stackoverflow article- seems to be another interface, like an alternate to github?

Is it possible to remove file from staging area without committing changes? git reset file.ext or git rm --cached file.ext?

Also I have a directory called sudo in my terminal, if I try cd sudo it says Not a directory??

@damwhit
Copy link

damwhit commented Jul 4, 2019

@mcat56 nice work on this! I liked the kitchen analogy for staging and committing!
Regarding your comments/questions:

  • I wouldn't worry about the git gui for now - we'll discourage using it throughout your first couple of mods at turing. It's just a tool that adds a more visual interface to what you're currently doing from the command line.

  • Yes, you can remove a file from the staging area https://stackoverflow.com/questions/1505948/how-do-i-remove-a-single-file-from-the-staging-area-undo-git-add is a good explanation.

  • sudo is actually more like a command. It's something you can use to act like a "superuser" from the command line. Useful when you need to change permissions for things from the terminal. - also probably something you won't need to use for a long time.

@mcat56
Copy link
Author

mcat56 commented Jul 4, 2019

@damwhit thank you!

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