If you are changed some files, but won't include its in your commit, do next:
- include files only you need:
git add filename
- stash other files:
git stash --keep-index
If you are changed some files, but won't include its in your commit, do next:
git add filename
git stash --keep-index
| url=http://www.redmine.org/projects/redmine/wiki/RedmineTextFormatting | |
| Email addresses | |
| Email addresses are automatically turned into clickable links: | |
| "Email someone":mailto:someone@foo.bar -- Email link with different text: Email someone | |
| More complex email instructions can be added to an email link. A default subject, default body and CC information can be defined. Note that spaces in any of these fields need to be replaced with the code %20. | |
| "Email webmaster and admin":mailto:webmaster@foo.bar?cc=admin@foo.bar -- Email to webmaster, CC admin: Email webmaster and admin | |
| "Email someone for help":mailto:someone@foo.bar?subject=Website%20Help -- Email link with the subject "Website Help": Email someone for help |
| //= require jquery | |
| //= require jquery_ujs | |
| $(function() { | |
| var source = new EventSource('/stream'); | |
| source.addEventListener('counter', function(e) { | |
| $('body').after(e.data + '<br />'); | |
| }); | |
| }); |
find -L . -name "*.png.webp" -exec rm {} \;| require 'colorize' | |
| # | |
| # параметр - регулярное выражение в кавычках. | |
| # | |
| # пример вызова: | |
| # | |
| # ruby delete_by_regexp.rb '^*.-[a-z0-9]{32}\..+?$' | |
| def listdir(dirname, regexp, indent="") | |
| dir_print = "#{indent}#{dirname}".green |
| ActiveRecord::Base.transaction do | |
| 1000.times { Model.create(options) } | |
| end |
| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |
####Install.
sudo apt-get install libqt4-dev
sudo apt-get install xvfbGemfile:
gem "capybara-webkit"