Tech Stuff I Want To Remember

Sunday, 12 October 2014

Git: diff between two branches for a file

git diff branch1..branch2 -- file_path_from_base_of_repo

In the diff output "a" will be the version of the file in branch1 and "b" will the file in branch2
Posted by StuffIWantToRemember at 04:11
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: Git, HowTo

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

StuffIWantToRemember
View my complete profile

Blog Archive

  • ►  2015 (5)
    • ►  October (1)
    • ►  August (1)
    • ►  June (2)
    • ►  February (1)
  • ▼  2014 (31)
    • ►  November (4)
    • ▼  October (6)
      • Creating a right-click menu to open with Sublime Text
      • Git: find only the names of files which are differ...
      • Git: diff between two branches for a file
      • When Ctrl+Alt+ arrow keys rotate the screen and yo...
      • Create a git branch and push it upstream
      • Location of outlook PST file
    • ►  September (15)
    • ►  August (5)
    • ►  July (1)
Ethereal theme. Powered by Blogger.