Skip to content

Alias for git fetch && git reset --hard @{u} #25

@salcode

Description

@salcode

i feel like it would be cool if git had “git pull —force” (the same as git push —force but instead it resets your local branch to wherever the remote is currently)

of course you can accomplish the same thing with git reset but it’s something I fairly often want to do

https://social.jvns.ca/@b0rk/111851540697408119

I like this idea. Typically, I accomplish this with

git fetch && git reset --hard @{u}

but something closer to git pull --force would be nice.

Maybe git pull-force or perhaps it makes more sense to stay away from git pull, in which case maybe git resetu or git ureset

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions