tech::hexagram

personal note for technical issue.

git

github flowで便利なgitコマンドまとめ

git

業務中に便利ツールを作った際に、git commandを駆使していろいろな情報を取る機会があったのでまとめておく。 git diff $ git diff master development --name-only masterブランチとdevelopmentブランチで差分のあるファイルをファイル名だけ表示できる。 …

git fetchで、unable to update local refとエラーが出た場合の対処法

git

リモートでブランチが削除されたのか、git fetchしようとした時にエラーが出た。 git remote prune origin / git fetch originで解決。 error: there are still refs under 'refs/remotes/origin/XXX` ! [new branch] XXX -> origin/XXX (unable to update l…

Githubの差分を表示するuser.jsを作成してみた

git

https://github.com/manji602/github_commit_viewer上げた。 会社でGithub Enterpriseを使っていて、コミットの差分をパッと見れないのがいまいちだったので作ったものをGithub向けにリメイクした。パッと使った感じだと、リポジトリトップから左上の「X com…

さくらのVPSからgithubにpushする際ハマったこと

git

README.mdの書式 この辺りが参考に。 Markdown/README.md at master · tokkonopapa/Markdown · GitHub ~/.ssh/configの設定 Host github HostName github.com User git IdentityFile ~/.ssh/id_dsa ssh-key周りの作り方 Generating SSH Keys · GitHub Help

git cherry-pickでコミットまで持っていきたくないとき

git

オプションにrnをつける。 git cherry-pick -rn 0123456789abcdef...