Skip to content
8 changes: 7 additions & 1 deletion notes/2023-09-26.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,5 +237,11 @@ Yes we will write scripts in a few weeks.
Often yes.

### Do you know of some situations where restore saved the worst possible mistakes in a repo?
Yes, reverting and restoring helps fix bugs all the time. It is also how people can remove data that should have never been commited, before pushing.


### Can use reset to go forward in time commit-wise. For example, if you reset too far back, can you go back to a more recent commit?

The best answer I can find is that you can revert back to a more recent commit after resetting to an older one. I also read that there is a chance git does some cleanup after a few days and deltes the commits that come after the time of the reset, making going forward in time impossible. This might only be in edge cases though.


Yes, reverting and restoring helps fix bugs all the time. It is also how people can remove data that should have never been commited, before pushing.
11 changes: 6 additions & 5 deletions notes/2023-10-03.md
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,7 @@ git cat-file -p 2bcb
100644 blob b86eb90ba1ae5504edfcdc9ef8879e1c6d7a1b75 README.md
100644 blob 443f164cdde5059d78df6a61ca3f07bc6a605eb0 about.md
```
- Note that you may notice repeated hashs when looking at a tree like this. While every hash is different when it comes to commits for example, they can be the same in some cases. One example where the hashes can be the same is if multiple files ("file1.md", "file2.md", "file3.md") have no content inside and are blank. In the systems eyes they are essentially the same object, so they get the same hash (not all hashing algorithms are the same, this is not always the case)

Since mine is a tree we can see that it has a list of items and each item in the list includes:
- mode
Expand Down Expand Up @@ -724,21 +725,21 @@ If your object was a blob, look at the type of the next one up in your find outp
```


## Prepare for Next Class

```{include} ../_prepare/2023-10-05.md
## Review today's class

```{include} ../_review/2023-10-05.md
```



## Review today's class
## Prepare for Next Class

```{include} ../_review/2023-10-03.md
```{include} ../_prepare/2023-10-03.md
```




## More Practice

```{include} ../_practice/2023-10-03.md
Expand Down