Show navigation

Today we talk about git, git's role in team/deployment workflows, how to perform a code review.

Command line basics
Where am I?
pwd ("print working directory")
What else is in here (in terms of files and folders)?
ls ("list")
Go into "projects" directory
cd projects ("change directory")
Go "up" one directory
cd ../
Go to my home directory
cd ~

Ignoring files and folders

I want you to take note of a file in this repo that you've just downloaded: .gitignore.

The dot at the beginning of the file name means that it will be "hidden" in most file system viewers, but if you're using a modern code editor, you should be able to see it when you open the repo's folder with your code editor.

This file contains a list of files and folders that will not be tracked by git.

If git is so great, why would we want to not use it with some files and folders?

Three reasons:

  • Any files containing sensitive information like database passwords should be ignored
  • Any files that are too big (i.e. 20mb+ - git will reject any files bigger than 100mb)
  • Any "dependencies" that can be installed separately. I'll leave this one vague, but we'll definitely learn more about this during our lesson on NodeJS.

Further Reading:





Table of ContentsWhat is Version Control?How Do Teams Use Git?What is Code Review?Giving good feedbackGetting good feedback