Skip to content

gir reset #4

@xgqfrms

Description

@xgqfrms

git reset

git reset && git push with force overwrite

# master commit uid
$ git reset --hard b9e3f7f2f66674901b467183dd81d493e50677f5
# git push branch_name --force

# local master
$ git push origin master --force

# remote master
$ git push origin/master -f

refs

https://stackoverflow.com/questions/18137175/in-git-what-is-the-difference-between-origin-master-vs-origin-master

https://git-scm.com/docs/git-reset

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