“Dapatkan Kode Kembali Setelah Hard Reset” Kode Jawaban

Dapatkan Kode Kembali Setelah Hard Reset

git reflog
# find hashes (shas)

git checkout -b someNewBranchName shaYouDestroyed
gautamajay52

Dapatkan Kode Kembali Setelah Hard Reset

#you did git reset --hard and need to get that code back
#One more thing: Suppose you destroy a commit as in the first example, but then discover you needed it after all? Tough luck, right?

#Nope, there's still a way to get it back. Type git reflog and you'll see a list of (partial) commit shas (that is, hashes) that you've moved around in. Find the commit you destroyed, and do this:



git checkout -b someNewBranchName shaYouDestroyed
gautamajay52

Jawaban yang mirip dengan “Dapatkan Kode Kembali Setelah Hard Reset”

Pertanyaan yang mirip dengan “Dapatkan Kode Kembali Setelah Hard Reset”

Lebih banyak jawaban terkait untuk “Dapatkan Kode Kembali Setelah Hard Reset” di Shell/Bash

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya