Skip to content

Instantly share code, notes, and snippets.

@johny5w
johny5w / desc.md
Created December 13, 2018 22:25
Git branch from previous commit

Create a new branch and switch to it (so all of your latest commits are stored here)

git checkout -b your_new_branch

Switch back to your previous working branch (assume it's master)

git checkout master

Remove the latest x commits, keep master clean

@johny5w
johny5w / devstart.txt
Last active November 14, 2018 19:32
boxstarter
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
Enable-RemoteDesktop
cinst nodejs
cinst python
cinst python2
cinst gow
cinst yo
cinst fiddler
cinst cmder
@johny5w
johny5w / backup-vscode-extensions.sh
Last active November 12, 2018 16:46
Backup VS Code extensions
#! bin/bash
# This is the command used to generate the backup, which can then be ran as a shell script
# code --list-extensions | xargs -L 1 echo code --install-extension
code --install-extension alefragnani.Bookmarks
code --install-extension andys8.jest-snippets
code --install-extension BriteSnow.vscode-toggle-quotes
code --install-extension christian-kohler.npm-intellisense
code --install-extension cssho.vscode-svgviewer