Use git reset and checkout same commit as local repo.
use a secret key file