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 directorycd
- Changing Directorycd ..
- Leave current directorymkdir folder_name
- Make Directory called folder_nametouch 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 foldergit add .
- Adds all the changes before commitinggit commit -m "message"
- Commit changes to your local branchgit push
- Push local branch to remote / online branchgit pull
- Pulls changes on remote branch to local branchgit merge branch_name
- Merges local branch_name into your current branchgit 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
- Clone this Github Repo
class-0
- Create your branch. Be sure to name it properly!
- Make the specific changes to which you were assigned.
- Once finished, ensure other changes to the master branch are merged into your local branch.
- 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.