Git odstranit unpushed commit

Příklady kódu

2
0

git odstranit unpushed commit

# Removes latest commit from the stash, KEEPS changes
git reset --soft HEAD~

# Removes latest commit from the stash, DELETES changes
git reset --hard HEAD~
0
0

git zahodí všechny unpushed commity

# Remove ALL commits up to commit hash.
# NB: Make sure these commits have not been pushed.

git reset --hard <commit hash number>
-1
0

git vrátit poslední odevzdání unpushed

git reset --soft HEAD~1

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
..................................................................................................................