git cancel last commit
git reset --soft HEAD~1
pop last commit git
#this will preserve changes done to your files
git reset --soft HEAD~1
#this will get rid of the commit and the changes done to the files
$ git reset --hard HEAD~1
revert last commit git
$ git commit -m "Something terribly misguided" # (0: Your Accident)
$ git reset HEAD~ # (1)
[ edit files as necessary ] # (2)
$ git add . # (3)
$ git commit -c ORIG_HEAD # (4)
how to undo commit
git reset <commitId>
# Exemple
git reset 5310517
git remove last commit
# To to remove already pushed commit!
git push -f origin HEAD^:master
jquery redirect to url
$(location).attr('href', 'https://google.com');
jquery window redirect with header
$(location).attr('href', 'www.google.co.in');
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us