Git odstranit poslední odevzdání tlačil

Příklady kódu

26
0

zrušit odevzdání

# KEEP CHANGES
git reset --soft HEAD~1

# REMOVE CHANGES
git reset --hard HEAD~1
4
0

git smazat místní odevzdání

git reset --hard origin/<branch_name>
4
0

git odebrání commitů z větve po push

git reset --hard <last_working_commit_id>
So we must not reset to the commit_id that we don't want.

Then sure, we must push to remote branch:

git push --force
3
0

vrátit poslední push na server

git reset --hard HEAD@{1}
git push -f
2
0

github undo Poslední tlačil odevzdání

git reset <previous label or sha1>
git commit -am "blabla"
git push -f <remote-name> <branch-name>
1
0

zrušit závazek, který není tlačen

git reset --soft HEAD~

V jiných jazycích

Tato stránka je v jiných jazycích

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................