3 ms·
I don't know if Christian would go this far, but I actually put this into my ~/.gitconfig so that I'm always rebasing [pull] rebase = true edited for line sp
by boleary-gl 4y ago
I don't know if Christian would go this far, but I actually put this into my ~/.gitconfig so that I'm always rebasing
[pull]
rebase = true
edited for line spacing
- greatpostman 4y agoWow did not know this existed. I’ll add it to my config
- augusto-moura 4y agoJust a nit on the HN comment, you can indent the lines 2 spaces so that it shows up as a code block, it should maintain the correct spacing/line wrapping and it uses a monospaced font as well like this
- boleary-gl 4y agoThanks - today I learned
- dnsmichi 4y agoToday I learned, thanks a lot! Created a MR for the Developer Evangelism Hacker News handbook to add this formatting tip, and some more https://gitlab.com/gitlab-com/www-gitlab-com/-/merge_requests/112729 https://gitlab.com/gitlab-com/www-gitlab-com/-/merge_request...
- dnsmichi 4y agoYou are more brave than I am - I have it explicitly disabled :-) https://gitlab.com/dnsmichi/dotfiles/-/blob/main/.gitconfig https://gitlab.com/dnsmichi/dotfiles/-/blob/main/.gitconfig When I pull and it runs into a merge conflict, I want to see that error/log on the CLI. Reason: Sometimes the automated pull-rebase takes a very long time to resolve conflicts after each step. I prefer to first run git fetch git diff branchname origin/branchname and then decide my strategy :) Bit off-topic but since we share .gitconfig tips - I upgraded to a recent Git version and enabled the "git push" option to setup tracking automatically. No more "git push -u origin branchname" actions. https://gitlab.com/dnsmichi/dotfiles/-/blob/main/.gitconfig#L19 https://gitlab.com/dnsmichi/dotfiles/-/blob/main/.gitconfig#... [push] autoSetupRemote = true
- silverwind 4y ago`pull.rebase` should be the default just because it avoids the problem of merge commits.
- davecamp1717 4y agoYeah, I wish this was the default functionality in git, to me it never makes sense not to want to rebase when pulling.