Git of the day #14: git reset --keep HEAD^
Created a branch off the wrong place, but started working on changes? Keep changes while resetting a feature branch to a different place using the keep option.
Git of the day #13: git reset --soft HEAD^
Undo a git commit, without undoing the git add that staged the changes for the commit in the first place, keeping the working copy unchanged.
Git of the day #12: git checkout ref file
Restore a file to its state as it was in a previous or different commit.
Git of the day #11: git log --follow
Track file and folder moves when providing a path to git-log.
Git of the day #10: git add :/path/to/file
Specify a path relative to the root of the repository regardless of the current directory.
Git of the day #9: git log --first-parent
Show only ancestor commits that are the first parent of each commit in the tree.
Git of the day #8: git mv
Help Git update tracked changes on renamed and moved files, such as when changing the case of a filename.
Git of the day #7: git add --intent-to-add
Make Git aware of a new untracked file without staging its contents and adding it to the index.
Git of the day #6: git reset --hard ORIG_HEAD
Use ORIG_HEAD ref to reset HEAD back to the state before a rebase took place.
Git of the day #5: git rebase --interactive
Git history tells a story. Tell the best story you can using rebase.
Git of the day #4: git log --oneline --graph
A shorter log format with a fancy graph to show commit hierarchy clearly.
Git of the day #3: git add --patch
Begin an interactive session of adding hunks to the staging area,
Git of the day #2: git add --interactive
Start an interactive session with Git in the terminal.
Git of the day #1: git commit --amend --no-edit
Having created a commit, the commit can be edited with your staged changes.
Set up WordPress caching on Cloudflare Free
Tutorial for setting up caching of a WordPress site on the free plan of Cloudflare with caching and support for logins, using Cache-Control headers to specify exactly how to cache different resources on your site.
Fix stuttering AirPods in Windows Boot Camp
Bluetooth in Windows on MacBooks can cause stuttering for peripherals such as AirPods or mice. This might be able to be resolved by installing a particular driver version or checking other Low Energy devices connected to your Mac.
Boot Camp Windows 10 2004 eGPU MacBook Pro 15-inch
A tutorial for setting up an eGPU on the latest Windows 10 fixing error 12 in Device Manager for Boot Camp MacBook Pro. Also avoid Error 31 and issues with the built-in discrete graphics card in the MacBook taking resources from the external GPU in the enclosure.
Install all package man pages in Alpine Linux
Manual pages for packages in Alpine Linux are in separate packages. You can install all the man pages for the currently installed commands using this one-liner.
Fix orange flashing light on BT Smart Hub broadband
It seems there’s yet another bug in the BT Home Hub 5 and later BT Smart Hubs causing it to be unable to connect to broadband and show an orange flashing light. This time, the fix is easier than getting a replacement, although it’s more of a workaround. This is the fix to the problem …