Reputation: 21
when I use the command "git pull", A message is popped out
"fatal: Invalid value for pull.rebase: input"
how can I handle it?
Upvotes: 0
Views: 11336
Reputation: 1
The git pull.rebase configuration option can have several possible values, which determine how Git handles merging changes when you run git pull. Here are the possible values:
false: This is the default value. It means git pull will perform a merge to integrate the changes.
true: This means git pull will use rebase instead of merge.
preserve: This option means git pull will rebase but will try to preserve merge commits (a.k.a. rebase with --preserve-merges).
merges: Similar to preserve, but using --rebase-merges, which is a more modern and reliable method of preserving merges.
Your pull command currently has an input as value, but it should be replaced with one of the options mentioned above.
sample command 1: git config --local pull.ff true sample command 2: git config --local pull.ff preserve
Upvotes: 0
Reputation: 1271
fatal: Invalid value for pull.rebase: input
This message mean somewhere in your git config files you have pull.rebase set to the value input, which is not a valid value for it to be set to. It's likely you want this to be set to preserve
(now deprecated), or the newer merges
Try git config --list --show-origin --show-scope
Git typically has config:
/etc/gitconfig
/home/<username>/.gitconfig
.git/config
of the repo you are inOnce you find the config which has the offending entry for pull.rebase, you can modify it directly in the file or with a command like:
git config --local pull.rebase merges
obviously with setting --local to global or system if needed
Upvotes: 5
Reputation: 7632
I think you have a configuration issue
https://git-scm.com/docs/git-config#Documentation/git-config.txt-pullrebase
Check for git config for pull.rebase
This should be interactive
not input
Upvotes: 1