## On This Day...
```dataview
LIST
FROM "DevLog/log"
WHERE dateformat(file.day, "MM-dd") = dateformat(this.file.day, "MM-dd")
```
---
## Notes Created Today
```dataview
TABLE created, updated as modified, tags, type, status
FROM "DevLog" AND !"DevLog/log"
WHERE contains(dateformat(file.ctime, "YYYY-MM-dd"), dateformat(this.file.day, "YYYY-MM-dd"))
```
---
[[DevLog/log/2021-04-28|2021-04-28]] <== <button class="date_button_today">Today</button> ==> [[DevLog/log/2021-05-04|2021-05-04]]
- Great bash config for using git from [this thoughtbot article](https://thoughtbot.com/upcase/videos/git-customizing)
```bash
# No arguments: `git status`
# With arguments: acts like `git`
g() {
if [[ $# > 0 ]]; then
git $@
else
git status
fi
}
# Complete g like git
compdef g=git
```
- A great tip to update your master branch return to the original branch you left and then merge changes. this is made as a git alias.
- `!git checkout master && git pull && git fetch --prune && git checkout - && git merge master`
- Aliased as `mup` for _"Master Up"_
- The `!` is running it as a shell command as git aliases can only run 1 command. So this way we're still chaining commands
- Removing a file from git history from [this SO article](https://stackoverflow.com/questions/307828/how-do-you-fix-a-bad-merge-and-replay-your-good-commits-onto-a-fixed-merge/15729420#15729420)