Is there a way to check the difference between the working directory in my current branch and the working directory of another branch in a specific file? For example, if I work in branch A in file 1, I want to compare the difference with file 1 on branch B.
Use the syntax for the git diff branch file name:
git diff branchA branchB -- file.cs
enter two names of your branches and, optionally, use the parameter -- filenameto specify one file! Good luck let me know if you have a problem.
-- filename
, , legacy, build.gradle master:
legacy
build.gradle
master
git diff master build.gradle
Source: https://habr.com/ru/post/1649567/More articles:Powershell: Get-Item vs Get-ChildItem - powershellХорошо и безопасно работать со ссылками, переданными конструктору - Java - javaTypeScript compiler errors in a string - javascriptReturn JSON exception - .netHow can I output or write output on docker? - dockerstream multiple files continuously in C ++ - c ++Multiple return value and: = in go - goC ++ 11 for each loop with more than one variable - c ++Why wrapping a column in a loading grid - htmlwrite a program to add all primes from one to hundreds - javaAll Articles