Upgrade to Pro — share decks privately, control downloads, hide ads and more …

複数会社複数リポジトリでのソース管理

S-cubism
November 17, 2017

 複数会社複数リポジトリでのソース管理

S-cubism

November 17, 2017
Tweet

More Decks by S-cubism

Other Decks in Technology

Transcript

  1. git diff origin/branch1...origin/branch2 --diff-filter=M --name-only > diff1.txt && git diff

    origin/branch2...origin/branch1 --diff-filter=M --name-only > diff2.txt && git diff origin/branch2..origin/branch1 --diff-filter=M --name-only > diff3.txt && grep -x -f diff3.txt <$(grep -x -f diff1.txt diff2.txt) > diff5.txt 1 3 2 branch1 branch2
  2. よく使うコマンド ・git diff branch1..branch2 ・git diff branch1...branch2 ・git diff –diff-filter

    ・git cherry-pick ・git cherry-pick -m ・git remote –v ・git branch –vv ・git branch -vv | awk '1{n=3}/^*/{n=4}$n~/^¥[/{gsub(/¥[|¥]|:/,"");print $n}'