“Children shouldn’t be subjected to Teams.”
Vaccine: Oxford / AstraZeneca
Dose number: 2
Superpowers: still nothing
I am trying to burn command line Git into my brain, rather than using a graphical tool. The options are fine, but I need to actually get the command correct…
zsh: command not found: got
Source code version control is a core competency of the modern developer. But sometimes the system and the environment can get in the way.
When using Xcode (or other tools) with services such as GitHub the default situation is to associate a folder with a new repository, including all files and subfolders contained within. This might also include some files or folders you might not want to include.
For example, macOS uses hidden files named
.DS_Store (Apple’s Desktop Services Store) to manage information about the state of local folders, and Xcode places files in
xcuserdata/ folders which track the state its own UI.
Both of these are useful for the local user, but are unlikely to be so for others who might be working on your project code.
If you want to prevent all of your local projects including selected files or folders in their repositories, then you can update Git’s global settings.
Create a file named
.gitignore_global in your local user root directory. For example, by using the following command in the Terminal:
_global suffix to highlight to future you that this affects all repositories.
Using your preferred text editor, add the name of each file or folder that you want to be excluded from all of your Git repositories. For the examples above, the file would contain (with #-prefixed comments included):
# macOS .DS_Store # Xcode xcuserdata/
There are other options, such as using wildcards, which can be explored as extended reading.
Use the Terminal to tell Git to use this list of files folders to be ignored when creating all new local repositories:
git config --global core.excludesfile ~/.gitignore_global
You might want to ignore files on a project by project basis.
The process is the same, but in each project root folder you should include a
.gitignore file, formatted as above.
If you had already linked your Xcode project via Git, and after setting up your global, or per-project, ignore files, perhaps now have the odd erroneous file such as
.DS_Store in one of your repositories, you can remove the individual files from your repository:
git rm --cached .DS_Store
This will need done for each rogue file in your local repository, with files being removed from your remote repository on the next
Our Professional Learning Community breakfast club continued today with a discussion abut metacognition:
All good teachers implicitly understand and support the metacognitive development of their students, but too rarely have/take the time to explicitly explore the topic.
Vaccine: Oxford / AstraZeneca
Dose number: 1
Superpowers: none yet detected
Day 99 of #100DaysOfSwiftUI: always seeking snow
Final challenge day, and not lazy for a change. All challenges complete. With care and attention.
“Tomorrow we’ll discover
What our god in heaven has in store!
One more dawn, one more day, one day more!”
Splash of the Titans:
Mathieu van der Poel on his way to besting Wout van Aert in the battle for the cyclocross rainbow bands in Ostend. Not often bike races take place in the North Sea.
Cumbria County Council get free pass from UK government to allow a new coal mine:
“[Projected emissions are] greater than the level of annual emissions we have projected from all open UK coalmines to 2050.”
— Lord Deben, reported by The Guardian
🎵 ‘Caterpillar’, Hamish Hawk
New single from the sensational Hamish Hawk (Twitter: @HHawkOfficial).
Bit of an early 80s indie vibe going on with this one, with Byrne-esque visuals.
The first meeting of our virtual Professional Learning Community breakfast club is tomorrow morning. The topic? Retrieval Practice. Want a primer?
Last quarter of 2020:
Apple today announced financial results for its […] quarter ended December 26, 2020. The Company posted all-time record revenue of $111.4 billion
— Apple PR
Day 98 of #100DaysOfSwiftUI: first degree burns
Last project complete, bar the inevitable challenges. And two days to go…
“Nae man can tether Time nor Tide,
The hour approaches Tam maun ride;”
It’s easier to quote words than live by them:
“O ye wha are sae guid yoursel’,
Sae pious and sae holy,
Ye’ve nought to do but mark and tell
Your neibours’ fauts and folly!”
— Address to the Unco Guid, Robert Burns
But that doesn’t mean we shouldn’t try.
Day 97 of #100DaysOfSwiftUI: lobbest thou thy code
How many days left?
“Three shall be the number thou shalt count, and the number of the counting shall be three. Four shalt thou not count, neither count thou two, excepting that thou then proceed to three.”
Day 96 of #100DaysOfSwiftUI: oxford can do commas
Just started looking at building SwiftUI views for iPad.
Four days left to finish this off and squeeze in Mac, Apple TV, and Apple Watch. Simple.
When an America-curious young Scot decides he wants to explore the culture and personality of the nation across the pond in early 2021, what should he do?
Start a podcast, of course! And what a time in history to do so.
🎙 Lewis Davie presents They The People
When your employer suggests that it’s maybe time for a virtual home visit to check that your working environment meets health and safety requirements you know you have been working from home for too long…
I have requested a badge if I can make it a full year!