GIT Flashcards
What command used for showing what revisions and author last modified each line of a file?
Git blame
What are options for git blame?
- L < start>,< end> means Line used for restricting output to certain lines
- e option shows authors email
- w ignore whitespace
- M detect or copy lines within same file.
- C detect lines that were moved or copied
What is the difference between git blame and log?
Git blame is limited to individual file history and displays last author and is often used with online hosting with GUI ,log is more verbose and can show all commits .
What is purpose of tagging?
Used reference point in git history of commits. Capture a point to such as mark version release a identifiers where there was no change. It’s like a branch that doesn’t change.
What is tag command in git?
git tag
How do you display current state of working directory in git?
git status
How can you undo a commit?
Use git checkout
To get into last st
How can you undo a commit?
Use git checkout
To get into last st
How can you undo a commit?
Use git checkout
To get into last st