Basic Flashcards
What does the term “delta” mean in the context of commits?
Compress a commit as a set of changes between one version of your repository and the next.
What happens when we type git status
?
We see the current branch, whether our Local repository is different from remote and the state of tracked and untracked files
The git status command shows us what is going on in our Local repository?
No, it shows our Working directory
What does the command git add <file>?
Adds all the changes to the Staging area
What is the Staging area?
Where we collect all changes we want to put in the repository
We can compare the commits to some […] of work.
meaningful chunk
After we add a message, where does our commit go?
To the local repository
The git push command takes our changes from […] and pushes to […]
Local repository, remote repository
The command git diff operates only in […]
Working directory
Not in Staging area or Local repository
But, for see the differece between Remote and Staging area we type git diff --staged
What is the command to see the difference between two specific commits?
git diff \<from commit\> \<to commit\>
How can we see the difference between a commit and a previous one?
git diff \<commit\>^!