How to pull files from the repository without merge commit?

2

How can I get new files from the repository without committing Merge branch 'master' of... ?

I'm using:

git pull

It pulls everything out, but it creates this merge commit. How do I get only remote repository commits bypassing this merge legal commit?

    
asked by anonymous 09.03.2018 / 15:38

1 answer

2

You can do git rebase :

git pull --rebase

Thus, git will put all your commits at the top of the commits of the remote branch, without committing merge . This is a very common complaint when using Git because without having this habit of using rebase you end up having these merge commits "dirty" the branches.

However, when a conflict occurs, git rebase is not the best option.

    
24.07.2018 / 22:41