Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

181220_slideshare_git

137 views

Published on

Gitについてスタジオ・アルカナの2018年12月勉強会でお話させていただいた内容のスライドです。

Published in: Engineering
  • Be the first to comment

  • Be the first to like this

181220_slideshare_git

  1. 1. $ git status $ git add . $ git commit -m “blahblah” $ git push origin topic
  2. 2. $ git status $ git add . $ git commit -m “blahblah” $ git push origin topic
  3. 3. compactionHeuristic
  4. 4. $ git diff
  5. 5. $ git diff
  6. 6. $ git config [ -- global | local ] diff.compactionHeuristic true
  7. 7. git for-each-ref
  8. 8. $ git for-each-ref
  9. 9. $ git for-each-ref (git)-[master] b8c37e… commit refs/heads/master b8c37e… commit refs/remotes/origin/HEAD b8c37e… commit refs/remotes/origin/master
  10. 10. $ git for-each-ref --sort=-committerdate refs/remotes/origin --format='%(authordate) %(refname)n' | xargs -I{ } printf "%sn" { } (git)-[master] Wed Jul 2 18:24:45 2014 +0900 refs/heads/origin/a Wed Jul 2 13:17:21 2014 +0900 refs/heads/origin/b Fri Jun 27 15:07:41 2014 +0900 refs/heads/origin/c
  11. 11. git filter-branch
  12. 12. $ git for you
  13. 13. $ git for you

×