I don't believe that would work as refs/pull/*
would not refer to a specific ref
.
Leverage your curl
-fu better!
curl -sIw '%{redirect_url}\n' http://bit.ly/XyProblem | tail -1
Wouldn't you be better off committing your 'slight changes/notes' into a separate branch and rebasing that every time?
@jwebcat Thanks. Anything to keep from leaving the shell! ;)
Just posted a followup to this: GitHub: add remote for pulls and merges
@swarut i'm a vim
guy, so it's mostly vimdiff
/gvimdiff
. But I end up using git-difftool
very sparingly as vim-fugitive
fills that use case much better. :)
git difftool --help
...
-t <tool>, --tool=<tool>
Use the diff tool specified by <tool>. Valid diff tools are: araxis, bc3, deltawalker, diffuse, emerge, ecmerge, gvimdiff, kdiff3, kompare, meld, opendiff, p4merge, tkdiff,
vimdiff and xxdiff.
...
The details of the refspec are in Chapter 9.5 of @schacon's book ProGit. Neat work on trawling the Travis logs! ;)
Just a small quibble, you don't need to put the +
before refs
, i.e., you don't need to force pull the ref. Other than that, awesome tip; how did you come about this feature?
If your execute
resource results in the creation of a file/directory, you can use the creates
attribute to indicate whether or not it should be run. http://wiki.opscode.com/display/chef/Resources#Resources-Execute
Achievements
227 Karma
9,652 Total ProTip Views
![](https://dj1symwmxvldi.cloudfront.net/assets/badges/beaver-4aaa0657e89d77a213defc49d173e7bca9b1e93222cdb2c9ae814380fdd4ea38.png)
Beaver
![](https://dj1symwmxvldi.cloudfront.net/assets/badges/mongoose-299fb33af2a4e416505b484d73e79ee3ff1840f3c7385d6bbbc158f76be054cb.png)
Mongoose
![](https://dj1symwmxvldi.cloudfront.net/assets/badges/python3-355595aad795b512954169cb5ac4dbd80454a302a3b891581faa58b988650a46.png)
Python 3
![](https://dj1symwmxvldi.cloudfront.net/assets/badges/python-df746136c133c10a796100239e3563e3419fb4d5a7b8cc9bed181c941f6dbf55.png)
Python
![](https://dj1symwmxvldi.cloudfront.net/assets/badges/komododragon-4a367331904f40950f6ad91fe236c48eec07fe8e0087471dbf7a17c6c6ed7923.png)
Komodo Dragon
![](https://dj1symwmxvldi.cloudfront.net/assets/badges/raven-35923a69492045dffe4dfe0d7ebf31da4e76efabbbdaa090acd59d17debb3087.png)
Raven
![](https://dj1symwmxvldi.cloudfront.net/assets/badges/honeybadger-e6a507524dd5b8b273f39b437d9da1c1bbbb434a59a060a1fe67e3ad83736261.png)
Honey Badger
![](https://dj1symwmxvldi.cloudfront.net/assets/badges/forked1-63f23ad054823f6065b4526f8552dbc2c4fbaa75d22db7150d700201218ac426.png)
Forked
![](https://dj1symwmxvldi.cloudfront.net/assets/badges/bear-5c19af6347f82c65ad573ca74334eb155a8b3bb617607752895dc6751c6c88fc.png)
Bear
![](https://dj1symwmxvldi.cloudfront.net/assets/badges/walrus-1f517cbbd8f030099b8386c53d4ee40fece3fa146b6362accb3abddb436482cb.png)
Walrus
![](https://dj1symwmxvldi.cloudfront.net/assets/badges/charity-bab6d575c53894cc9e395db7cdb1f0f91f176fa0cc8122c5f824e672f3d556a4.png)
Wait, does that mean that Heroku leaves the ports open to the public?!?