Accessing other repositories in Gitlab CI is not straight forward, since the access rights of the current pipeline might not be sufficient enough. One approach is to use project access...
...instead of using sed: git submodule deinit --all --force rm .gitmodules git submodule add https://gitlab-ci-token:$CI_CUSTOMER_1_ACCESS_TOKEN@code.example.com/dev/customer-1.git customer-1 git submodule add https://gitlab-ci-token:$CI_CUSTOMER_2_ACCESS_TOKEN@code.example.com...
...is fixed in a fork, so say this in a Gemfile: gem 'tmail', :git => 'https://github.com/eac/tmail.git'
...fork, change the gem "rails"... line in your Gemfile to this: gem 'rails', :git => 'https://github.com/makandra/rails.git', :branch => '2-3-fixes' The intent is to make as few changes to...
...solarized color scheme in your Rubymine IDE: Clone the IntelliJ IDEA port: git clone https://github.com/jkaving/intellij-colors-solarized.git Import the settings in Rubymine by chosing the above directory File -> Import Settings...
...stalled like this: [err :: host.name.tld] Username: It turned out that I this originated from GitHub. We had a gem in...
...our Gemfile that explicitly pointed to a GitHub URL like that: gem 'foogem', :git => 'https://github.com/blubb/foogem.git' The URL was returning a 404 which caused the problems. You have to...
Our gitpt script to generate git commits from Pivotal Tracker stories has been tweaked and polished and is now part of the geordi gem. Install the freshly released version...
...our own fork, not from the Ubuntu sources. Installing rbenv Install rbenv: git clone https://github.com/rbenv/rbenv.git ~/.rbenv For Bash: echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc echo 'eval "$(rbenv init...
...ruby-build (gives you rbenv install): git clone -b local-openssl-for-old-rubies https://github.com/makandra/ruby-build.git ~/.rbenv/plugins/ruby-build You should now be able to say rbenv install --list, and see...
...same key you used for connecting to the application server - forwarded automatically to the git repository. If you prefer the second way, add this to deploy.rb: ssh_options[:forward_agent...
...tests and you have a backup of your files (or pushed your commits to Git) Install Modularity 2+ From your project directory, do this: find . -name "*.rb" | migrate-modularity1-to...
sudo gem install zip git clone git://github.com/rtomayko/date-performance.git cd date-performance rake package:build cd dist sudo gem install --no-ri --no-rdoc date-performance-0.4.7.gem
Some folks have started to keep their linux configuration in a git repository called "dotfiles". This sounds like a good idea. here are mine The idea is to keep all...
...config files in a ~/.dotfiles git repository, and symlink these files to all relevant places. This happens automatically with a rake task...
...in this card can occur if the node_modules directory is checked into your Git repository. We usually recommend to exclude node_modules from version control. In any case you...
sudo gem install fast_gettext --no-ri --no-rdoc script/plugin install git://github.com/grosser/gettext_i18n_rails.git (didn't work as gem) environment.rb: see code example at the bottom
...of ruby-build, update ruby-build like this git -C ~/.rbenv/plugins/ruby-build remote add makandra https://github.com/makandra/ruby-build.git git -C ~/.rbenv/plugins/ruby-build fetch makandra git -C ~/.rbenv/plugins/ruby-build checkout makandra/local-openssl-for-old-rubies At makandra, this...
Help configure a Travis CI build that tests every dependency permutation after each git push. Share your Ruby / gem dependeny / database permutation between local development and Travis CI.
...I bet there is a semi-automated way to get a patch from the Github repository that you can apply on your rubygems.rb but I don't care enough to...
...toy around with git format-patch. If you do, let me know...
...warning and create an empty commit. Any arguments to the command are forwarded to Git. Fixed: The "commit" command will not print the extra message any more. Added: The "commit...
update: update a Rails project that has been lying around for some time (git pull, bundle install, migrate) security-update: prepare and finish a security update by pulling/pushing/merging and...
...controllers (app/*) and migrations (db/*) with symlinks to spec/shared/app_root. The symlinks are checked into Git. An own Gemfile for each Rails app, which freezes the correct versions of Rails and...
Install gem and plugin sudo gem install parallel script/plugin install git://github.com/grosser/parallel_tests.git Adapt config/database.yml test: database: xxx_test<%= ENV['TEST_ENV_NUMBER'] %> Create test databases script/dbconsole -p CREATE DATABASE...
Optional further commit messages in the body Also see Howto: Write a proper git commit message To quickly generate such commit messages, add a new link "Commit" to your...
...title"]').innerText : story.querySelector('[name="story[name]"]').value); let id = story.dataset.id; if (id && title) { let gitptTitle = '[#' + id + '] ' + title; if (storyTitles.indexOf(gitptTitle) == -1) { storyTitles.push(gitptTitle); } } }); if (storyTitles.length > 0) { prompt('Your commit message...
...uninstalled with gem uninstall gemname. List and uninstall a gem installed via Bundler from Github This does not work for gems installed directly from Github. They do not appear in...
Show all gems installed via Github by bundler: ls ~/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/ Remove a gem installed via Github by Bundler: rm -rf ~/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/bundler/gemname-xyz rm -rf ~/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/cache/bundler/gemname-1.2.3 This might also be...
...lives in app/assets). I got rid of the warnings by committing empty files into Git: public/images/.gitkeep public/javascripts/.gitkeep public/stylesheets/.gitkeep
Sometimes, due to git or other "accidents", important files get deleted or overwritten. At a state when even Ctrl+Z doesn't work anymore, you maybe can rescue your files...