don't forget autostash alias gupa="git pull --rebase --autostash"
Never* use Git pull [video]
11–20 of 22 posts
Re: Never* use Git pull [video]
#12Re: Never* use Git pull [video]
#13I've not used "git pull" since 2010. I always "git fetch" remote objects, and rebase with an explicit "git rebase".
Re: Never* use Git pull [video]
#14Re: Never* use Git pull [video]
#15I feel like this is "solving" a problem that doesn't exist in good workflows. How often are you pulling from a shared branch that you are making local commits to? Each of the people in the video should be branching off main and doing pull requests to get back into main.
> How often are you pulling from a shared branch that you are making local commits to? Every working/hobbying day for the past decade and a half.
Re: Never* use Git pull [video]
#16I feel like this is "solving" a problem that doesn't exist in good workflows. How often are you pulling from a shared branch that you are making local commits to? Each of the people in the video should be branching off main and doing pull requests to get back into main.
Re: Never* use Git pull [video]
#17don't forget autostash alias gupa="git pull --rebase --autostash"
Re: Never* use Git pull [video]
#18don't forget autostash alias gupa="git pull --rebase --autostash"
A rebase that is part of a pull, together with auto-stash, doesn't make a whole lot of sense.
I've never run into the problem of not being able to rebase due to uncommitted changes, except in two situations:
- suddenly wanting to rewrite something in the branch, unrelated to the in-progress work.
- working in a badly structured project whose builds alter tracked files
Re: Never* use Git pull [video]
#19Earlier quoted context omitted.
Isn't that what "git pull --rebase" does?
I've had it enabled by default for years and years. It's always what I want. [pull] rebase = true
So then I trained myself on "pull --rebase". I soon realized, I don't want to be combining fetch and rebase. The best way was to just scrub the pull command from the vocabulary.
Re: Never* use Git pull [video]
#20I've not used "git pull" since 2010. I always "git fetch" remote objects, and rebase with an explicit "git rebase".
Isn't that what "git pull --rebase" does?