nichoguimbaolibot / guides-for-git

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

generating a new ssh key

adding the new ssh key to the agent

  • $eval "$(ssh-agent -s)"
  • ssh-add ${directory_of_ssh)

reverting to a previous commit

  • gitk and find the id of the commit you want to revert back
  • copy the id
  • git reset --hard ${id_of_the_commit}

About