The readings and responses listed here should take you approximately 20 minutes total.
To start this assignment:
- Click the button in the upper right-hand corner that says Fork. This is now your copy of this document.
- Click the Edit button when you're ready to start adding your answers.
- To save your work, click the green button in the bottom right-hand corner. You can always come back and re-edit your gist.
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:
- 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?
- Shift + enter - create a new line in a message - helps readability a lot
- Command shift C - codeblock selected text - to show code text in code format - shortcut and helps readability
- E then 1-9 - view and select emojis - emojis are great!
- Command + U - upload file
- Command + / - show shortcuts
What's the use of the staging area in git? on Stackoverflow (10 min)
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.
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??
@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.