Skip to content
\n\n

E git.exc.GitCommandError: Cmd('git') failed due to: exit code(1)
\nE cmdline: git pull -v origin --ff-only master
\nE stderr: 'error: unknown option `ff-only master'
\nE usage: git fetch [] [ [...]]
\nE or: git fetch []
\nE or: git fetch --multiple [] [( | )...]
\nE or: git fetch --all []

\n

In fact we see that the commande used is the fetch one.... not the pull one... so the --ff-only option is not available...
\nhow can i make a pull that make a pull ?

","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"

After taking a look at the API reference I believe origin.pull(ff_only=true) should do the trick.

\n

Please feel free to keep posting here in case that didn't work.

","upvoteCount":1,"url":"https://github.com/gitpython-developers/GitPython/discussions/1172#discussioncomment-408842"}}}

git pull make a fetch ? so "--ff-only" seems not possible #1172

Answered by Byron
fletort asked this question in Q&A
Discussion options

You must be logged in to vote

After taking a look at the API reference I believe origin.pull(ff_only=true) should do the trick.

Please feel free to keep posting here in case that didn't work.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Byron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1088 on February 26, 2021 11:18.