This gist is for Linux. For windows is the same thing.
create a file .login_info as below:
connect your.server.url
usernanme
| function fetchJSON(url, options, callback) { | |
| if (typeof options === 'function') { | |
| callback = options | |
| options = {} | |
| } | |
| options = options || {} | |
| const headers = (options.headers || (options.headers = {})) | |
| headers.Accept = 'application/json' |
| sudo: required | |
| language: ruby | |
| services: | |
| - docker | |
| before_install: | |
| - echo "Testing Docker Hub credentials" | |
| - docker login -e=$DOCKER_EMAIL -u=$DOCKER_USERNAME -p=$DOCKER_PASSWORD |
| #!/bin/bash | |
| function search-branches() { | |
| for sha1 in `git log --oneline --all --grep "$1" | cut -d" " -f1` | |
| do | |
| git branch -r --contains $sha1 | |
| done | |
| } | |
| function search-tags() { | |
| for sha1 in `git log --oneline --all --grep "$1" | cut -d" " -f1` | |
| do |