Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git compare branch to another branch changes

#Comparing Actual Changes Between Two Branches
$ git diff main..feature/login
$ git diff main...feature/login

#Comparing Commits Between Two Branches
$ git log main..feature/login
$ git log --oneline main..feature/login

#Comparing A Specific File Between Branches
$ git diff main..feature/login index.html
Source by www.git-tower.com #
 
PREVIOUS NEXT
Tagged: #git #compare #branch #branch
ADD COMMENT
Topic
Name
9+1 =