Command Line Snippets
And look cool while you are doing it
A list of helpful code snippets for us making this, my personal blog. This post assumes you are using the command line to work on a personal website. The primary reasons for doing this is to speed up workflow and to look cool while you are doing it.
Snippets
1. Duplicate a directory
cp -r content/blog/_template content/blog/title-tk
2. Error Fatal: Not possible to fast-forward, aborting
git pull --rebase
3. Create new branch
git checkout -b NEW_BRANCH_NAME
4. Open VS Code editor (w/ shell command installed)
code .
5. review last commit
git log [BRANCH NAME]
6. Speed up commit
Resources #
To Do #
- Add a Clipboard.js feature to allow easy copy/paste
🧐