Link to home
Start Free TrialLog in
Avatar of Rohit Bajaj
Rohit BajajFlag for India

asked on

Git pull causing merging and a default message appearing

Hi,
I have noticed sometimes whenever i do a git pull.
The editor will open up for merging with the default message :
Merge branch 'branch-name' of 10.1.5.12:app-portal into 'branch_name'
And i unnecessarily end up creating a new commit.

I dont know why this is happening ?
Ideally when i do a git pull it should just pull out the changes and not merge something...
Moreover why this message is appearing in the commit ?

Thanks
Avatar of Qlemo
Qlemo
Flag of Germany image

My guess is that there are changes in files on both sides you need to merge. Do you see any changes to merge in the editor?
Do a 'git fetch' first then try pull.
You have local changes, so it is asking for merging during pull.
ASKER CERTIFIED SOLUTION
Avatar of pepr
pepr

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial