Git related commands
- Overwriting local branch with remote branch
- https://stackoverflow.com/questions/9210446/how-to-replace-local-branch-with-remote-branch-entirely-in-git
git reset --hard <remote name>/<branch name>
git-filter-repo
- Replacing paragraphs
- This is done by replacing line by line, not by paragraph
git filter-repo --replace-text replace.txt- Each line of
replace.txthas form<old line>==><new line>
- Rename files or directories
git filter-repo --rename-path <old path>:<new path>- If replacing file, it seems to only work if you specify a path from current directory to the file location
Creating good habits, breaking bad habits
Paschal Sheeran, UNC Chapel-Hill
- Mental contrasting
- Think about the obstacles that are in the way of your goals
- If-then plan
- If (obstacle), then I will (response)
- Makes you more likely to do it
- Self-nudging
- lower the barrier to good habits (eg layout exercise clothes the night before)
- Raise the barrier to bad habits (eg hide snacks)
- It’s all about tiny split-second decisions
- Pause and deliberately think about your choices
Time Management video
Randy Pausch’s video on YouTube
- setting goals
- why am I doing this?
- do I need to do this?
- what happens if don’t do it?
- “if you can dream it, you can do it”, Walt Disney
- you need inspiration. It’s the first step to action
- you have to at least believe you can do it
- to-do list
- order by importance is key
- important and urgent
- important not urgent
- not important urgent
- not important and not urgent
- do the ugliest thing first
- break things into manageable steps
- order by importance is key
- have a plan
- you can always change the plan
- paperwork (or email)
- handle each paper once (more like process each thing once)
- doesn’t mean don’t come back to it, but either needs to be filed away or put on the to-do list
- have a known place to find things, like a filing cabinet
- handle each paper once (more like process each thing once)
Designing your work life
- bias to action
- tend toward doing something
- prototype, try things