Quantcast
Channel: git - There's an echo in my head
Browsing all 6 articles
Browse latest View live

Pull Requestを投げるときにIssueを再利用する

$ hub pull-request -i<ISSUE> -b <BASE> -h <HEAD>参照man hubGitHub の Issue をあとから Pull Request にする (あとからコードを添付する) - Qiita追記...

View Article



git current-branchで現在のブランチ名を返す

aliasを使う。# ~/.gitconfig [alias] current-branch = "!$SHELL -c 'git branch &> /dev/null | grep \"^\\*\" | cut -b 3-' __dummy__"これでcurrent-branchサブコマンドが使えるようになる。$ git current-branch masterさらにcb =...

View Article

gitでタグをもとにブランチを切る

タグの情報を見るなら$ git show タグ名そのタグをチェックアウトするなら$ git checkout タグ名 そのタグからブランチを切る(そしてチェックアウトする)なら$ git branch ブランチ名 タグ名 $ git checkout ブランチ名もしくは$ git checkout -B ブランチ名 タグ名タグ名も結局コミットオブジェクトのエイリアスなんだなと。

View Article

GitHub上のpull requestをローカルに手軽にマージする

mattnさんの意外と知られていない github 技で知った次のコマンドが便利。$ curl -s https://github.com/foo/bar/pull/xxx.patch | git am --sは進捗やエラー文を非表示にする--silentオプションのショート版。

View Article

サブモジュールでgit pullする直前のHEADを知る方法

commitするまえなら.git/modules/<MODULE_NAME>/ORIG_HEADに書いてある。commitしたあとは…まだわからない。

View Article


複数のgit-pr-release用のトークンを発行する方法

1台目のマシンでgit-pr-releaseを叩いて認証すると、2台目のマシンでgit-pr-releaseで叩いたときに同一ユーザの認証に失敗する。GET https://api.github.com/repos/<your>/<product>/pulls/<number>: 401 - Bad credentials // See:...

View Article
Browsing all 6 articles
Browse latest View live




Latest Images