Table of Contents
conclusion
.git/info/excludeBy specifying folders and files with Git, you can exclude them from management.
Insufficient memory when switching
Individuals’ brain specs are extremely low, making them unsuitable for multitasking.
My work is also severely affected.
For example, when you have to complete one task while completing another.
After changing the branch,
- What were you doing on this branch?
- how far has it progressed
- What kind of policy did you follow?
Wasting time remembering. It is very inefficient and has poor fuel consumption.
ai says
I asked Chat GPT how to solve the problem.
I really sympathize with the problem of “sluggish switching between tasks”. This is actually It’s called
task switching cost'' orcontext switching,” and it actually puts a strain on the brain’s mechanism.
That’s what Frank told me.
Come to think of it, I feel like AI is becoming more frank lately.
It may be time to enter the phase of trying to please humans. The Singularity is coming soon, and we may no longer have to worry about switching between tasks due to work being taken away in the first place, but it seems like there is still work in front of us, so I decided to listen to countermeasures and try to make improvements.
If you write down your current state and what you need to do next before switching tasks, it will be much faster to restart when you return.
Apparently this is very effective.
【作業名】◯◯のバグ修正【今やってたこと】- APIのレスポンス確認中- 400エラー出てるが原因不明
【次にやること】- console.log 追加してリクエスト確認- header と token を見直すIt seems that if you write it down like this, you can concentrate on your work immediately when you return.
Where to write switching notes
I decided to put it into practice right away, but I was having trouble deciding where to take notes.
Google I could use Keep, Notion, or Slack, but since I’m basically in VsCode, I’d like to complete my work with VsCode.
I want to remove it from Git management
However, most of the directories used in VsCode are managed by Git.
In other words, if you put your own notes there, they will be managed by Git. I’d like to avoid it, but I don’t like writing to the gitignore of the whole project, and it might affect other people.
In other words, I want to remove it from Git management only in my own environment.
Solved
After looking into it, it seems that this can be done by changing the settings in .git.
.git/info/excludeIf you specify a specific folder, that folder will not appear in your change history.
Of course, it is safe to name the folder with a folder name that will not be used in the project, so make sure to name it with an arbitrary prefix.
I thought this would solve the problem of slow task switching, but I’m still having trouble with it.