- Run the following command and copy the ID of your VM
VBoxManage list vms
=> "virtualMachine" {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}- Go to the Vagrant project configuration folder
| require 'bundler/cli' | |
| require 'git' | |
| require 'octokit' | |
| BRANCH_NAME = 'branch' | |
| COMMIT_MESSAGE = 'Commit Message' | |
| # ASSIGNEE = 'pengwynn' # update to assing pull request | |
| git = Git.open(Dir.pwd) | |
| github = Octokit::Client.new(access_token: ENV['GITHUB_ACCESS_TOKEN']) |
| require 'git' | |
| root_path = ARGV[0] | |
| raise 'Specify root path as first parameter e.g. \'/Users/myname\'' unless root_path | |
| # Find all folders wich are git repositories | |
| Dir[File.join(root_path, '*/.git')].each do |git_path| | |
| path = git_path.gsub('.git', '') | |
| git = Git.open(path) |
VBoxManage list vms
=> "virtualMachine" {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}When running vagrant up you might encounter the following error:
==> default: Exporting NFS shared folders...
NFS is reporting that your exports file is invalid. Vagrant does
this check before making any changes to the file. Please correct
the issues below and execute "vagrant reload":
exports:39: path contains non-directory or non-existent components: <any local path>
exports:39: no usable directories in export entry
| require 'json' | |
| require 'octokit' | |
| require 'restclient' | |
| ORGANIZATION = 'lessonnine'.freeze | |
| ACCEPT_HEADER = 'application/vnd.github.luke-cage-preview+json'.freeze | |
| Octokit.auto_paginate = true | |
| client = Octokit::Client.new(access_token: ENV['GITHUB_ACCESS_TOKEN']) |
| curl -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/orgs/<organization>/teams | jq '[.[] | {name: .name, id: .id}]' |
| aws s3 cp s3://<bucket>/<path>/ . --recursive --profile <profile> |
Sync a fork of a repository to keep it up-to-date with the upstream repository.
Inspired by the GitHub documentation
Fetch latest changes of the upstream repository.
git fetch upstreamCheckout the branch you want to sync the upstream into (Usually master).