This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
:: Update npm on Windows. | |
:: Instructions: download this .bat file (location shouldn't matter, but make sure | |
:: it saves with the .bat extension) and run as administrator. | |
:: This is essentially solution #3 of https://github.com/npm/npm/wiki/Troubleshooting#upgrading-on-windows, | |
:: just simplified by complicating things with a batch file :) | |
:: This approach requires re-running this script for each npm upgrade, but it keeps the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# v0.1.0 | |
# Copyright 2014, Lyle Shearer | |
# MIT License | |
# https://gist.github.com/lshearer/ebb8a55a7406637cb523 | |
# | |
# Using http://blog.santosvelasco.com/2012/06/14/extending-git-add-a-custom-command/ as a guideline | |
# | |
# Convenience method to fetch and then merge in origin/master to current HEAD |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# v0.1.0 | |
# Copyright 2014, Lyle Shearer | |
# MIT License | |
# https://gist.github.com/lshearer/0d6a8c665a3b075af150 | |
# | |
# Using http://blog.santosvelasco.com/2012/06/14/extending-git-add-a-custom-command/ as a guideline | |
# | |
# Creates a new branch based on a freshly fetched origin/master |