5.7 Adding Version Control (GIT)

  1. Download GIT https://git-scm.com/
  2. git --version
  3. git init creates a hidden directory .git/, but do not manually interact with it.
  4. git status
  5. node_modules is a generated folder. We do not want to add this to the git repository.
  6. server.log is not necessarily needed as well.
  7. git add package.json
  8. git commit -m "message"

Create a file called .gitignore, and type the names of unnecessary files in it. When you run git add, the files will not be added into the repository.