Horje
restore deleted commits Code Example
restore deleted commits
# Run this command:
git reflog

# Scan the first few entries, and find the commit that was lost.
# Keep track of the identifier to that commit (you can use either the 1st or 2nd columns).
# Let's call the identifier "ID".
# If you have not made any extra work since you did the reset --hard you can do:
git reset --hard ID
git push -f origin master

# If you have made other work since the reset,
# you could cherry-pick if back onto your branch like this:
git cherry-pick ID
git push origin master




Shell

Related
dotnet CLI db scaffolding Code Example dotnet CLI db scaffolding Code Example
Running setup.py install for pyahocorasick ... error Code Example Running setup.py install for pyahocorasick ... error Code Example
separate a file using a tag Code Example separate a file using a tag Code Example
dpkg: error processing package libc-bin (--configure): installed libc-bin package post-installation script subprocess returned error exit status 134 Code Example dpkg: error processing package libc-bin (--configure): installed libc-bin package post-installation script subprocess returned error exit status 134 Code Example
cron every 5 minutes offset Code Example cron every 5 minutes offset Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
13