What is git?

Git is version control system, which helps users track changes in files and back up these files. For further information go ahead and read up more about git!

Git Commands Cheatsheet!

Getting Set Up!

  1. git init [project name] . This command is one way to set up your project with git! This command creates a new local repository with a specified name.
  2. git clone [url] . This command is another way of setting up your project with git. In this way your project will be downloaded with its entire verion history.

Making changes...

  1. git status , this command will list all new or modified files to commit.
  2. git add [file] or git add . , this adds a file or in the case of the dot it adds all changed or new files in their present state to be committed.
  3. git commit -m "[descriptive message"] , this is how to commit the changes you have added since the last commit.

Review history and synchronize changes.

  1. git log , this command lists the version history on your current branch.
  2. git push , this command uploads all the local branch commits to a site, i.e. GitHub
  3. git pull , this command downloads bookmark history and incorporates changes.