Skip to content

burcakkok/exercise5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

Git and GitHub - week 2 - exercise 5 Q&A

1. How do you see the files changed within each commit from git log?


To see the files changed within each commit from git log, use git log --raw command. It is best way to find what file changed in a commit.


2. How do you see the contents of what changed within each file from the git log?


To see the whole history of the file, use git log --follow -p -- path-to-file (diffs for each change are included).


3. What does HEAD refer to in the context of git? (Not to be confused with the "HEAD<<<<" one observes within merge conflict)


HEAD is basically seeking wherever you are in your commit history. When you make a commit, HEAD will also follow.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published