reading-notes

Reading 3

  1. What is Version Control?

    A Version Control System (VCS) allows a user to go back and revisit previous versions of a file or a set of files by recording all the changes that have been made to said file/files. By using Version Control, a user can track modifications and the individuals who made the modifications, compare the changes made, and can revert a file or project to a previous version.

  2. What is cloning in Git?

    Cloning in Git, allows a user to have copied versions of all files for a project. This command creates a directory called “test,” with an initialized .git directory inside it, containing copies of all versions of all files for the specified project. This command automatically retrieves and checks out a copy of the newest version of the project for editing.

  1. What is the command to track and stage files?

    • Track and stage a single file for committing - git add filename
    • Track and stage all files for committing - $ git add .
  2. What is the command to take a snapshot of your changed files?

    • $ git commit -m “Example Commit”
  3. What is the command to send your changed files to Github?

    • git push [remote-name][branch-name]