OpenDataServices / developer-docs

Documentation about how we get our work done. For internal use, but happy to share
Other
1 stars 0 forks source link

Useful git commands #17

Closed Bjwebb closed 7 years ago

Bjwebb commented 8 years ago

Might be useful for me to create a section of these.

For my OCDS work I think I'm going to want to git blame a diff, which lead to me coming across https://github.com/dmnd/git-diff-blame and and http://stackoverflow.com/questions/5098256/git-blame-prior-commits

Bjwebb commented 8 years ago

Also, although we expect our devs to have a good understanding/experience of using git, we may work on repos with other members of the team. Very often these members have some git basics - e.g. cloning, pulling, pushing commiting etc., but there may be some useful intermediate tips we want to collect - e.g. the different ways of identifying a commit - tags, branches, HEAD~2, hash, short hash 0 for use with the git diff etc.