zip -e my_zip_file.zip your_original_file.docx
ssh-keygen -t rsa -b 4096 -C "[email protected]"
eval "$(ssh-agent -s)"
ssh-add -K ~/.ssh/id_rsa
use this to add existing key to your terminal session
-
Undoing, fixing, or removing commits in git Guide: Choose Your Own Adventure
-
Updating a forked repo from the original repo
- Configure a remote for fork: https://help.github.com/articles/configuring-a-remote-for-a-fork/
- Syncing a fork: https://help.github.com/articles/syncing-a-fork/
-
git init
-
git add
-
git commit -m "commit message"
-
git push
-
git reset --soft HEAD^
orHEAD~1
remove last unpushed commit, but keep the files -
git reset --hard HEAD^
destory last unpushed commit and its contents -
git update-ref -d HEAD
Remove first commit to the repo -
git clean -df && git checkout -- .
clean cwd and all uncommitted/untracked files