Closed salcode closed 5 months ago
In #30 we talked about git rhu
for git reset --hard @{u}
,
perhaps we want to do that and
git frhu
for git fetch && git reset --hard @{u}
Note: @{u}
is shorthand for @{upstream}
. We should use @{upstream}
in our alias
When you have a tracking branch set up, you can reference its upstream branch with the @{upstream} or @{u} shorthand. So if you’re on the master branch and it’s tracking origin/master, you can say something like git merge @{u} instead of git merge origin/master if you wish.
https://social.jvns.ca/@b0rk/111851540697408119
I like this idea. Typically, I accomplish this with
but something closer to
git pull --force
would be nice.Maybe
git pull-force
or perhaps it makes more sense to stay away fromgit pull
, in which case maybegit resetu
orgit ureset