Git Flashcards
What does the “origin” remote repo represent in a local Git Repository?
The remote repo from which you cloned the repo.
The origin from which –
What defines a common directory as a Git repository?
The presence of a “.git” subdirectory
Que fait la commande “git log”?
Liste des soumissions faites dans le dépôt
What should we add at the end of our files
A line break, so that our diffs don’t contain irrelevant information
What do commits contain?
Message
Author
Date
Files (Changes)
What does “git push -f” does?
Forces local changes to the remote repo (dangerous)
When are you in “detached head” when working with git?
When you checkout a commit that is not the most recent commit of a branch
What does the “git tag” command does?
Assigns a tag to a revision
What does “git stash” does?
Takes all changes in working and staging and saves them
What is the difference between “reset soft” and “reset mixed”
“reset soft” keeps all changes and stage differences
“reset mixed” keeps all changes and does NOT stage differences
What is a git reset
git reset removes commits in a local repo
What is a git revert
git revert “reverts” changes (useful for commits that were already pushed to a remote repo)
What is a merge fast forward?
A merge where no new commit is created. Rather, the commits from the merged branch get added to the top of the targeted branch.
What is a merge direction
A merge where you merge the master into your own branch to make sure that everything is stable before merging your changes into master.
What is Git LFS?
Git Large File System