3 ms·
Doing stuff like that is dangerous in my opinion. People may forget that they're actually doing something different from what they typed. Explicit is better th
by reledi 13y ago
Doing stuff like that is dangerous in my opinion. People may forget that they're actually doing something different from what they typed.
Explicit is better than implicit.
- noselasd 13y agoBut even typing git pull isn't canonical, bar what the defaults are. git pull pretty much does a git fetch && git merge for you.
- reledi 13y agoYes but that's the default behaviour of git pull so it's expected to fetch and merge when you pull. Changing the default behaviour can lead to confusion or mistakes.
- rachbelaid 13y agoBut as noselasd said git pull = Fetch + merge Setting up the rebase in config of a specific branch stay explicit because Git will If the rebase is not straight forward then you can still abort it. I would love that git has a config feature to force ff-only on pull but base on what I know you need to create an alias to have `pull --ff-only` replacing `pull`