git discard all local changes/commits and pull from upstream
git reset --hard origin/master
git pull origin master
| [ | |
| { | |
| "city": "New York", | |
| "growth_from_2000_to_2013": "4.8%", | |
| "latitude": 40.7127837, | |
| "longitude": -74.0059413, | |
| "population": "8405837", | |
| "rank": "1", | |
| "state": "New York" | |
| }, |
git discard all local changes/commits and pull from upstream
git reset --hard origin/master
git pull origin master
| #!/bin/bash | |
| repos=( | |
| "/Users/rob/Library/Application Support/TextMate/Bundles/Git.tmbundle" | |
| "/Users/rob/Library/Application Support/TextMate/Bundles/Ruby.tmbundle" | |
| "/Users/rob/Library/Application Support/TextMate/Bundles/RubyAMP.tmbundle" | |
| "/Users/rob/Library/Application Support/TextMate/Bundles/Ruby Haml.tmbundle" | |
| "/Users/rob/Library/Application Support/TextMate/Bundles/Ruby on Rails.tmbundle" | |
| "/Users/rob/Library/Application Support/TextMate/Bundles/ruby-sass.tmbundle" | |
| "/Users/rob/Library/Application Support/TextMate/Bundles/ruby-shoulda.tmbundle" |