Setting “git config pull.ff only” will tell Git to only allow fast-forward merges when pulling changes from a remote repository.
A fast-forward merge occurs when the commit at the tip of your current branch is an ancestor of the commit you’re trying to merge. In this case, Git can simply move your branch pointer forward to point at the new commit and there is no need for a merge commit.
If the remote branch has changes that cannot be merged with your local branch using a fast-forward merge, Git will throw an error and prevent the merge from happening. This ensures that you don’t accidentally overwrite or lose any important changes in your local repository.