Git and Github, Part I - Introduction To Git Cheatsheet - Codecademy
Git and Github, Part I - Introduction To Git Cheatsheet - Codecademy
Introduction to Git
Checking the Status of a Git Repository
The git status command is used within a Git repository
to its current status including the current commit, any
modified files, and any new files not being tracked by Git.
The output of git status can vary widely, and it often
includes helpful messages to direct the user to manage
their repository. For example, git status will show the
user the files they would commit by running git commit
and the files they could commit by running git add
before running git commit .
Git
Git is a command line software that keeps track of
changes made to a project over time. Git works by
recording the changes made to a project, storing those
changes, then allowing a programmer to reference them
as needed.
All Git commands follow the pattern git <action> and, in
order to use Git for a project, a project must first be
initialized using the git init command in the project’s
root directory.
Adding Changes to the Staging Area
The git add filename command is used to add the
filename file to the staging area. After your changes have
been staged, you can use the git commit command to
permanently store your changes.