Class 0 - Class Summary

  • Terminal Usage
  • Git / Github for Collaboration and Version Control

These are tools used everyday by software developers in Silicon Valley. Every single developer uses a terminal, everyday. Period. Github is owned by Microsoft and is used at Microsoft, Netflix, Twitter, Reddit and many more. Companies such as Google and Facebook develop and use their own version control tools so other companies don't have access to their code.

🛠 Set Up

💻 Terminal

The terminal is how programmers interact with computers. Everything we do with a keyboard and mouse can be done in the terminal. Here are some of the commands we'll be using.

  • ls - List files in current directory
  • cd - Changing Directory
  • cd .. - Leave current directory
  • mkdir folder_name - Make Directory called folder_name
  • touch file_name.txt - Make File called file_name.txt

👾 Git / Github

Github is a tool used to collaborate on software projects. Here are the git commands we'll be using.

  • git clone url - Clones the repository at the URL into a local folder
  • git add . - Adds all the changes before commiting
  • git commit -m "message" - Commit changes to your local branch
  • git push - Push local branch to remote / online branch
  • git pull - Pulls changes on remote branch to local branch
  • git merge branch_name - Merges local branch_name into your current branch
  • git status - Displays the status of your current local branch.

Branch Related Commands

  • git branch branch_name - Creates a branch called branch_name. It's based off of your current branch.
  • git branch -D branch_name - Creates a branch called branch_name. It's based off of your current branch.
  • git checkout branch_name - Changes your current branch to local branch_name

📝 Assignment 0

  1. Clone this Github Repo class-0
  2. Create your branch. Be sure to name it properly!
  3. Make the specific changes to which you were assigned.
  4. Once finished, ensure other changes to the master branch are merged into your local branch.
  5. Create a pull request (PR) for your local branch. Leave a note for me highlighting the changes you've made.

Once I review and approve your PR and you merge it in, you're done!

If you ask me a question before you ask Google a question, I will give you more homework next week.