Skip to content

Instantly share code, notes, and snippets.

Pomu pomu0325

Block or report user

Report or block pomu0325

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gitでマージ済みの(リモート|ローカル)ブランチを全て削除.md

マージ済みのリモートブランチを全て削除

git branch -r --merged master | grep -v -e master -e develop | sed -e 's% *origin/%%' | xargs -I% git push --delete origin %
  1. remote の master に merge済み の branch をすべて表示して
  2. master と develop は消えてほしくないので除外して
  3. origin/ を削除して
  4. xargs (-I% % で ブランチ名を渡しつつ、全て削除する)
@agarny
agarny / github-import-issues
Last active May 10, 2019
Import GitHub issues from one repository to another (incl. milestones, labels and comments).
View github-import-issues
#!/usr/bin/python
# -*- coding: utf-8 -*-
# This script came about after I removed several big files from a GitHub
# repository (see https://gist.github.com/agarny/5541082) and force pushed
# everything back to GitHub. However, cloning the 'new' GitHub repository still
# results in those big files being present in the git history. This is, among
# other things, due to some pull requests I have in that repository and which
# reference those big files. I contacted GitHub about this, but there seems to
# be nothing that they can do about it. So, I was left with no other choice but
@xuwei-k
xuwei-k / README.md
Created Mar 7, 2012
sbt で scala-tools を見に行かないように設定
View README.md
@masuidrive
masuidrive / .testflight
Created Dec 5, 2011
TestflightをサポートしたTitanium Mobile 1.7.5のbuilder.py
View .testflight
[titanium]
api_token=自分のAPI Token
team_token=Team Token
distribution_list=配布先のDistribution list名
@m92o
m92o / app.js
Created Feb 26, 2011
Ti.UI.TextArea.keyboardToolbar is not displayed at modal window. (Titanium Mobile 1.6 / iOS SDK 4.2)
View app.js
var window = Ti.UI.createWindow({
modal: true, // If this line is deleted, keyboardToolbar is displayed.
title: 'window',
backgroundColor: '#fff'
});
var trash = Ti.UI.createButton({
systemButton: Ti.UI.iPhone.SystemButton.TRASH
});
var textarea = Ti.UI.createTextArea({
editable: true,
You can’t perform that action at this time.