
Fixing (empty) commit messages ¶įrom the back of the lecture hall comes a question you’re really glad For the rest of the lecture, call me Google!” 9.3.1. “You tell me what you would be interested in doing, and I’ll show you how it’sĭone. “I’ll let you people direct this lecture”, the guest lecturer proposes.
Git reset hard update#
Here is an excerpt from the DataLad-101 history to show aįew abbreviated hashes of the 15 most recent commits 2:ĩ2faed1 remove obsolete subds 65ccbd8 Added subdataset da54eba save cropped logos to Git 40556de move book back from midterm_project d6713d9 move book into midterm_project f14e38a add container and execute analysis within container 6224cba finished my midterm project b3cb09b Recorded changes 23f54ef add note on DataLad's procedures e0ac99c add note on configurations and git config 792e798 Add note on adding siblings 8fe47cf Merge remote-tracking branch 'roommate/master' 33dfaee Include nesting demo from datalad website 252d826 add note about datalad update dec6ef9 add note on git annex whereis This hash is how dataset modifications in the history are identified,Īnd with this hash you can communicate with DataLad or Git about these The most important information in an entry (commit) in the history is

The basis of working with the history is to look at it with tools suchĪs tig, gitk, or simply the git log command.
Git reset hard how to#
Use, and how to use it.”, he reassures with a wink. Or questions on Stack Overflow right away.Įven experts will constantly seek help to find out which Git command to You will find thousands of helpful tutorials But I’ll give you the basics, and an idea of what is possible.Īlways remember: Just google what you need. “I do not have enough time to go through all the details in only Has an external Git-expert as a guest lecturer. To get a glimpse into how to work with the history of a dataset, today’s lecture It is possible to look at previous states of the data, or revert changes –Įven years after they happened – thanks to the underlying version control

As long as the content was version controlled (i.e., tracked), Is the ability to revert data to a previous state and thus view earlier content orĬorrect mistakes. With DataLad, no mistakes are forever: One powerful feature of datasets Almost everyone inadvertently deleted or overwrote files at some point withĪ hasty operation that caused data fatalities or at least troubles to
