Most of the time when I do this I checkout to a temp branch:
> git checkout -b temp-branch-name ea3d5ed039edd6d4a07cc41bd09eb58edd1f2b3a
Then after I'm done i just delete the branch
# For Windows | |
start chrome.exe --user-data-dir="C:/chrome-dev-session" --disable-web-security www.github.com | |
# For Linux | |
# not known yet | |
# For Mac | |
# not known yet |
rem rem stands for remark/comments | |
rem Kill all chrome process | |
taskkill /F /IM chrome.exe | |
rem Start chrome by disabling CORS | |
start chrome --disable-web-security --user-data-dir | |
{"lastUpload":"2021-06-02T05:47:46.849Z","extensionVersion":"v3.4.3"} |
#Delete last commit at remote (e.g. GitHub) | |
git push -f origin HEAD^:master | |
#Delete a particular commit at local git | |
git reset --hard <sha1-commit-id> | |
#Deleting last commit locally (HEAD~1 means last commit) | |
git reset --hard HEAD~1 |
git config --global http.proxy http://1500181:960619-43-5357@proxy2.utar.edu.my:8080 |
#!/bin/bash | |
ROOT_UID=0 | |
SUCCESS=0 | |
E_USEREXISTS=70 | |
# Run as root, of course. (this might not be necessary, because we have to run the script somehow with root anyway) | |
if [ "$UID" -ne "$ROOT_UID" ] | |
then | |
echo "Must be root to run this script." | |
exit $E_NOTROOT |
W //go to next Word (separated by space) | |
B //Back to previous Word (separated by space) | |
dib //Delete inside bracket | |
daw //Delete a word | |
dtk //Delete 'till 'k' | |
cW //Change big word (until a whitespace is reached) | |
cw //Change small word (until any non-alphabet is reached) | |
<Ctrl-a> //Add the first number in the current line by 1 | |
<Ctrl-x> //Xubtract the first number in the current line by 1 | |
180<Ctrl-a> //Add the first number in the current line by 180 |
Most of the time when I do this I checkout to a temp branch:
> git checkout -b temp-branch-name ea3d5ed039edd6d4a07cc41bd09eb58edd1f2b3a
Then after I'm done i just delete the branch