Skip to main content

Posts tagged with #git

Recent Posts (Page 1)

Photo by Roman Synkevych via Unsplash

Git push.default setup

Pushing a new branch to a repository’s remote often requires two attempts by the scatterbrained developer, but there is help in push.autoSetupRemote.

Photo by Roman Synkevych via Unsplash

How to delete all files ignored by Git

The .gitignore file in a Git repository serves as a configuration file that specifies files and directories that Git should — as the name implies — ignore. When Git encounters a file or directory listed in .gitignore, it automatically excludes them from being tracked, preventing them from showing up in commands like git status and git add.

Photo by Roman Synkevych via Unsplash

Bash Function to Remove Github Ghost Notifications

Every now and then my inbox in Github shows x total unread updates without having actual updates. When I click on it, there are no unread notifications. This is a known issue and it’s been around for a while. The notifications are called “ghost notifications” and they are not visible in the UI.

Photo by Roman Synkevych via Unsplash

Git stashes for ADHDers

If you are like me you probably typed more than once git stash and meant git stash list while working on many different things at the same time. If not, then feel free to go somewhere else and don’t waste your time here :]

Photo by Roman Synkevych via Unsplash

Git’s missing status Hook

Despite its many advantages and nifty features of Git, there’s one feature it lacks: a status hook. In Git, hooks are scripts that I can execute automatically at specific points during the version control process. These hooks perform custom actions, such as running tests, enforcing coding standards, or sending notifications, at various stages like pre-commit, post-commit, and post-merge.

Photo by Henry & Co. via Unsplash

Removing all local and remote tags in Git

Every now and then I find myself in the situation of needing to tidy up my projects and remove large amounts of local and remote tags in my Git repositories. The procedure is not too hard, but I have to look it up again each time, so why not just writing it up.

Photo by Stefan Steinbauer via Unsplash

Protected .dotfile files with Keybase

For reasons I don’t want to go too deep into (I once again violated my rule to NOT install Ubuntu versions without a LTS in their name and ended up without eyes or ears) I had to reinstall my workstations and computers last week.

Photo by Mikhail Vasilyev via Unsplash

.gitignore for GoHugo

This is a slight update on my previous post about the perfect .gitignore file for GoHugo. TLDR: The current optimum .gitignore content for a GoHugo project is the following (in addition to your own ignored files and folders): ini COPY 1/public/ 2/resources/_gen/ 3/assets/jsconfig.

Photo by Yancy Min via Unsplash

Learning to git with git

I like to learn things by doing them. Recently I found a couple of interesting game formats that teach certain aspects of full stack developer’s life by playing a game. Let’s play? Oh My Git! is a game to learn Git, by using Git.

Back to top
Back Forward