GIT Flashcards
What is a KEY skill in learning how to code?
Knowing how to manage the changes I make
What is a benefit of Git?
Makes controlling the different versions of my code easier for me and my team
What are 4 very high level tasks of what a coder does daily?
- Create things
- Save things
- Edit things
- Save the thing again
How does version control help me as a coder that saves things again and again?
It helps me track
- When I saved a change
- Why I saved a change
- What the contents of the change was
- Who was the person that made the change
What is Version Control?
It is a History Tracking program
When is Version Control truly the most beneficial?
When I am working on a collaboration on the same things and the same files
What does the tool “merge” allow me to do?
Allows 2 simultaneous changes from me and someone else to be merged into a unified and resolved, good and final state
What does Git’s Version Control bring to the table as benefits?
- Very lightweight and modern implementation of a version control
- Very fast
- Provides a history of content change
- Facilitates collaborative file changes
- Easy for any type of knowledge workers
Git is a distributed _____ _____ system.
Version Control
Command for initializing a empty Git repository?
git init
What is a Git Repository?
A hidden directory where Git operates
What is the command to see the current status of my Git project?
git status
What does “untracked” signal in Git?
That the “untracked” file is new to Git and needs to be added to the staging area so it can be tracked
How do I add a file to the Git “staging area?”
“git add filename.txt” command
Are files located in Git’s “Staging Area” in the “Repository” yet?
No
How does one store the “Staged” changes in the “Repository?”
Run the “commit” command
Ex:
git commit -m “Add cute octocat story”
What can I use when I want to add many files of the same type to Git’s “Repository?”
Wildcards (*)
Example:
git add ‘*.txt’
What is the command to commit to all changes made?
git command -m ‘Add all the txt files’