Skip to content

Instantly share code, notes, and snippets.

View mikemichaelis's full-sized avatar

Mike Michaelis mikemichaelis

View GitHub Profile
rename 's/test-this/REPLACESTRING/g' *
@mikemichaelis
mikemichaelis / cloudSettings
Created January 20, 2018 00:46
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-01-20T00:46:03.501Z","extensionVersion":"v2.8.7"}
@mikemichaelis
mikemichaelis / gist:4f6d62a03300a24e97c1d19b9413371e
Created April 19, 2017 14:30
Setup p4merge as git mergetool in Windows (cmd & PS)
git config --global merge.tool p4merge
git config --global mergetool.p4merge.path "C:/Program Files/Perforce/p4merge.exe"
npm show angular2-busy@* version
@mikemichaelis
mikemichaelis / gist:827a48367c7fa134c608d9abe6d01384
Last active April 18, 2017 15:11
update all packages inside package.json to their latest version
npm update -D && npm update -S
https://docs.npmjs.com/files/package.json#dependencies
https://docs.npmjs.com/misc/semver
FIRST:
On Windows with $HOME mapped to a network drive, global .gitconfig can exist in multile places.
When using the Windows command shell, batch scripts or Windows programs, the file will be read from:
%USERPROFILE%\.gitconfig
However, when you're using Gi msys (bash) this will be read from
$HOME/.gitconfig
@mikemichaelis
mikemichaelis / gist:984f3d82ad697545a57af6dda209b234
Created February 13, 2017 15:57
"Your branch is ahead of 'origin/master'" and it is not.....
git reset --hard origin/master
git tag -a v1.4 -m "[message]"
@mikemichaelis
mikemichaelis / gist:bdae9404ef5658e9f78ca919ed1bee20
Created December 27, 2016 18:30
Create a publish branch with a single commit
git branch publish
git checkout publish
git log --oneline
git rebase --root -i
git commit --allow-empty