“Git revert Remote -Zweig zurück” Code-Antworten

Git Reset Head, um Fernbedienung zu begehen

 git reset --hard <commit-hash> #Please double check your commit hash
 git push -f origin master # this will force update and remove commits after this one
Kirk-Patrick Brown

Last Last Commit drängte

git reset # commitId
# Exemple
git reset 5310517
Cipriano98

Git revert Remote -Zweig zurück

credit to: Jakub Narębski, Jeff Ferland and Charles Bailey 

// this is helpful if you have multiple devs working in a repo and they
// have pulled from dev (or whatever branch) and gotten any of the commits
// you're planning on revertting or you don't/can't know if they have pulled. 
// This will set you back to the state of the commit you want without 
// overwriting any of the history. This should help prevent conflicts

$ git reset --hard <commit hash you want to revert to>
$ git reset --soft <commit hash of last/latest commit> or @{1} 
$ git commit -m "reset: resetting back to # without overwriting history"
Pushy Pants

Ähnliche Antworten wie “Git revert Remote -Zweig zurück”

Fragen ähnlich wie “Git revert Remote -Zweig zurück”

Weitere verwandte Antworten zu “Git revert Remote -Zweig zurück” auf Shell/Bash

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen