Skip to content

Instantly share code, notes, and snippets.

@firstval
Last active November 1, 2015 15:32
Show Gist options
  • Select an option

  • Save firstval/a6c0aabf7e591a918f42 to your computer and use it in GitHub Desktop.

Select an option

Save firstval/a6c0aabf7e591a918f42 to your computer and use it in GitHub Desktop.
all git tutors
git revert HEAD^ --> for reverting to the next-to-last commit
git checkout -f --> to recover all files that not commit
git reset --hard --> remove newly added contents and files which are already staged
git reset --hard HEAD^ --> remove your latest commit
git clean --force -d --> To remove the untracked files
https://help.github.com/articles/generating-ssh-keys/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment