Git Flashcards
What is git init
creates a new Git repository
What is git status
checks the contents of the working directory and staging area
What is git add
adds files from the working directory to the staging area
What is git diff
shows the difference between the working directory and the staging area
What is git commit
permanently stores file changes from the staging area in the repository
shows a list of all previous commits
git log
discards changes in the working directory
git checkout HEAD filename
unstages file changes in the staging area
git reset HEAD filename
resets to a previous commit in your commit history
git reset commit_SHA#
How do you add multiple files at once?
Example: git add filename_1 filename_2