If each time you hear the phrase “git” and instantly begin picturing builders hunched over terminals, I will not blame you. The model monitoring software was constructed for code and has lived in that world for many years now. Nonetheless, at its core, Git is only a very intelligent manner of monitoring modifications made to a file over time. It does not know or care what these recordsdata comprise. Whether or not it is a C script or a notes file, it’s going to monitor modifications simply the identical.
I take advantage of Git for non-programmer duties day by day, and this utilization has nothing to do with writing code. When you perceive that Git is de facto nearly monitoring a file’s historical past, it stops being a developer-exclusive software and begins being helpful in much more conditions.
My notes sync themselves now
Utilizing Git as a versioned, cross-device pocket book
Considered one of my most simple use circumstances for Git is to sync my notes, and it is manner simpler than you assume. I preserve a folder of plain-text Markdown notes — analysis, notes, random concepts, snippets of code, and textual content I do not need to lose — and all the folder is a Git repository.
As a substitute of stacking your notes into some proprietary database which you could’t entry with out an account or particular app, you may preserve them as plain textual content or Markdown recordsdata inside an abnormal folder, which Git can monitor for you. Each time you commit a change, Git saves the state of these recordsdata, which means you may see what modified, roll again modifications, or get well one thing you deleted.
One other profit is Git’s distributed design. You’ll be able to have a full copy of your notes on each machine, then use a service like GitHub, GitLab, Gitea, or a self-hosted server as a central level the place every thing syncs. Your notes will nonetheless work offline, and you are not locked to a vendor simply to maintain every thing in sync.
My Linux setup by no means breaks anymore
Monitoring dotfiles so configs are all the time recoverable
Yadullah Abidi / MakeUseOf
I preserve a number of Linux installations divided throughout my digital machines and Linux server. These installations typically get reset or reinstalled as I preserve breaking issues whereas working completely different experiments. And in case you’ve ever spent a day getting your terminal, shell immediate, and keybindings, you understand the dread of organising a brand new machine and having to set all of it up once more from reminiscence. Just a little Git magic mixed with dotfile administration helps keep away from that problem.
Dotfiles are the hidden configuration recordsdata that stay in your house listing. Information like .bashrc, .vimrc, and .config/i3/config all accumulate your fine-tuned settings for numerous packages and system elements. By storing them in a Git repository, you get the total historical past of each tweak you’ve got ever made, and the flexibility to clone your setups with just a few instructions.
Associated
5 packages it’s essential to learn about as a Linux consumer
Linux is greater than a backup OS, and these packages show it.
My explicit workflow includes making a naked repo in ~/.dotfiles and a easy alias that lets me run Git instructions towards my dwelling listing with out turning the entire thing right into a repository. Once I change one thing like a keyboard shortcut or replace my shell aliases, I stage and commit the up to date recordsdata. You can too make branches for various machines to maintain monitor of various configurations in the identical repository.
I write every thing in Git now
Articles, drafts, and edits — with full historical past inbuilt
Screenshot by Yadullah Abidi | No Attribution Required.
I write all my articles in Markdown, and so they all stay inside a Git repository. That is similar to how my word syncing works, however will be expanded so that each article I write lives inside a Git repository.
The first perform right here is the diff command. Once I get suggestions, or I am unsure which model to decide on between a number of rounds of revisions, I can run git diff and see each single line I added, eliminated, or edited. This protects the trouble of opening a number of paperwork side-by-side in Google Docs or utilizing difficult file names to inform completely different variations aside. There’s one file, and Git does the heavy lifting of remembering every thing.
The branching characteristic additionally is useful right here. If I need to experiment with one other angle, construction, or particular person elements of a draft, I can create a department, work freely, and both merge it with the unique draft or discard it with out completely altering the unique file. That freedom to experiment with out the concern of wrecking an under-progress draft is difficult to place a worth on, and Git actually makes the method a lot simpler to comply with and preserve monitor of.
Git is manner greater than coding
Aside from these methods, you need to use Git for nearly any job the place it’s essential to preserve monitor of modifications in a single file. The purpose is not that Git is the most effective software for these duties in isolation. There are apps particularly designed for writing, note-taking, and managing configuration recordsdata. However in case you already know Git, even when it is simply the fundamentals, utilizing it throughout completely different use circumstances offers you one much less software to be taught or handle, one much less sync service to pay for, and a strong model historical past everytime you want it.
Sure, you may must take care of the terminal. And in case you’ve by no means used Git, moving into this may sound intimidating. Nonetheless, on the finish of it, you may choose up a genuinely helpful talent, and maybe extra importantly, complete management of your recordsdata. You determine if and when your knowledge leaves your machine, which service supplier you belief, what editors you utilize, and the way typically you sync your recordsdata. It is also an effective way to start out studying Git whereas getting one thing sensible out of it.

