Version Control Flashcards
What is git?
git is a form of version control
what does git help with?
git helps you keep track of changes (or version)
what does DVCS stand for?
Distributed Version Control Systen
what are the steps to save a file to your git repository?
hint: there is 5 steps
- Initialize
- Make some changes
- stage the changes
- commit your changes
- repeat steps 2-4 (with new code)
what is the command to….
initialize a git repository
git init
what is the command to….
stage current changes for a new commit
git add .
what is the command to….
check the current status
git status
what is the command to….
create a new commit
git commit -m “”
in this command…
git commit -m
what does -m “” do
-m “” adds a message to the commit so you have more information on what that commit is
for git add how would you add all files in the current folder
git add .
what is the command to….
look at all logs and changes
git log