Live data from Hacker News

Never* use Git pull [video]

youtube.com

1–10 of 22 posts

Re: Never* use Git pull [video]

#3
I 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]

#4

I 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.

All that shared branch needs is submodules to bump that workflow from Ultraviolent to Nightmare difficulty.

Re: Never* use Git pull [video]

#6

I 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

When more than one dev is working on a feature branch? You could take feature/a, branch off feature/a.1 for your local work but at some point you gotta incorporate work from feature/a. Not so different from origin/main -> main.

git pull --ff-only should really be the default (changeable) behavior.

Re: Never* use Git pull [video]

#7
Awesome! I completely agree with this approach. I use a slightly different alias, but that's it.

It provides a clean commit history, without actually rewriting the commit history.

I wish more developers in the company used this approach.

Re: Never* use Git pull [video]

#9

I 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]

#10
post #6

I 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 When more than one dev is working on a feature branch? You could take feature/a, branch off feature/a.1 for your local work but at some point you gotta incorporate work from feature/a. Not so different from origin/main -> main. git pull --ff-only should really be the default (changeable) behavior.

The other choice being git pull --rebase, with "git merge" being removed from the git suite.
Post reply on HN