Git Flashcards
what is a detached head state
we have checked out a commit that isn’t pointer to by any current branch or tag
how do we synchronise a repository
bring down remote changes - fetch
integrate local work - merge
what is a remote tracking branch
remembers positions of branches in the remote repository
describe merge
bring changes from one branch to another
which branch is affected by a merge
the one we have checked out
what is a fast forward merge
just change the commit that the branch points to
give the areas of git
workspace | staging area | local repository | upstream
what is init
creates an empty repository
what is git add
populates or adds changes
what is git commit
saves a snapshot
what is reflog
shows history and allows restore
what is git reset
moves the head to a specific commit
what is git revert
undoes a commit by creating a new one (done in public branches)
what is a hard reset
reset both index and working tree
what is a merge commit
merge branch into another where both have changed