Hacker News
new
past
comments
ask
show
jobs
points
by
MathiasPius
7 hours ago
|
comments
by
hiccuphippo
6 hours ago
|
next
[-]
You can also rebase directly on the remote branch
git fetch git rebase origin/main
reply
by
WickyNilliams
7 hours ago
|
prev
|
next
[-]
Nice. That'll make things a bit smoother. Changing branches often trips me up when I would later `git switch -`.
reply
by
mroche
6 hours ago
|
prev
|
next
[-]
Likewise with the other way around, just switch pull with push.
reply
by
huntervang
6 hours ago
|
prev
|
[-]
I have always done `git pull origin main -r`
reply