Hacker News new | past | comments | ask | show | jobs | submit login

    git push --force remote local-branch-name:remote-branch-name
(or if local-branch-name and remote-branch-name are the same:)

    git push --force remote branch-name
(N.B. if there's a chance that anyone else is working on the same branch, then think twice before doing --force, because you may spoil their afternoon. Read 'git help push' for more info.)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: