This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rubygems" | |
require "open-uri" | |
require "json" | |
# Run this script on the current git folder, changing repo name and user | |
forks = JSON.parse(open("https://api.github.com/repos/REPO_USER/REPO_NAME/forks").readlines.join('')) | |
forks.collect { |f| [f['owner']['login'], f['git_url']] }.each do |name, url| | |
puts "Adding #{name}" | |
`git remote add #{name} #{url}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# git | |
alias gl='git pull' | |
alias gp='git push' | |
alias gd='git diff' | |
alias gc='git commit' | |
alias ga='git add .' | |
alias gca='git commit -a' | |
alias gco='git checkout' | |
alias gb='git branch' | |
alias gs='git status' |