Posts
-
I messed up my git history: retrieving your lost commits
Photo by Elisa Ventur.
When using git commands that rewrite a branch’s history, like
rebase
orreset
, you might end up losing some commits by mistake.But don’t worry, as long as you committed your changes once, you should be able to get them back!
continue reading -
Git: how can I force pull a distant repository
Photo by Vidar Nordli-Mathisen.
Sometimes you want to set the state of your local branch to its remote version but cannot do so using the
continue readinggit pull
command because your local version and the remote one have diverged. -
Git reset, when and how to use it
Git reset is part of the git commands that used to confuse me, as I did not understand its purpose or use-cases at first.
On top of that, it seemed to be doing very different things depending on its input, which is either a commit or a path.
But once I dug a bit deeper into each option of this command and understood the logic behind it, which eventually is about undoing staged or committed changes, it really helped me to manage my commit history or revert my mistakes, which is particularly useful for my rebase workflow.
continue reading -
Get a clean git history with a rebase workflow
When I started using git, I had little concern about my commit history. I only used git as a backup tool for my work without trying to have consistent and readable commits.
That’s a common pitfall with git. I have often worked in teams where we would integrate all our commit iterations into our main branch, with commit messages as descriptive as
continue readingwip
, ending with a hardly useful history. -
Follow Your Website Analytics With Umami
This article is part of a series showing you how to quickly and freely build and host your own Jekyll blog on GitHub Pages. This series will also cover more advanced topics like adding a comment system directly in our code using Staticman and adding privacy-friendly but still free analytics using Umami.
continue reading -
Add A Comment System To A Jekyll Blog Using Staticman - 2 / 2
This article is part of a series showing you how to quickly and freely build and host your own Jekyll blog on GitHub Pages. This series will also cover more advanced topics like adding a comment system directly in our code using Staticman and adding privacy-friendly but still free analytics using Umami.
continue reading -
Add A Comment System To A Jekyll Blog Using Staticman - 1 / 2
This article is part of a series showing you how to quickly and freely build and host your own Jekyll blog on GitHub Pages. This series will also cover more advanced topics like adding a comment system directly in our code using Staticman and adding privacy-friendly but still free analytics using Umami.
continue reading -
Customize Your Jekyll Website
This article is part of a series showing you how to quickly and freely build and host your own Jekyll blog on GitHub Pages. This series will also cover more advanced topics like adding a comment system directly in our code using Staticman and adding privacy-friendly but still free analytics using Umami.
continue reading -
Create Blog Posts And Static Pages With Jekyll and GitHub Pages
This article is part of a series showing you how to quickly and freely build and host your own Jekyll blog on GitHub Pages. This series will also cover more advanced topics like adding a comment system directly in our code using Staticman and adding privacy-friendly but still free analytics using Umami.
continue reading -
Setup Your Free Portfolio With A Blog Using GitHub Pages
This article is part of a series showing you how to quickly and freely build and host your own Jekyll blog on GitHub Pages. This series will also cover more advanced topics like adding a comment system directly in our code using Staticman and adding privacy-friendly but still free analytics using Umami.
continue reading -
Build A Portfolio With A Blog Using GitHub Pages
This series of articles will show you how to quickly and freely deploy a personal portfolio website with a blog.
continue reading -
Getting The Type Of An Interface Property In Typescript
Problem
The problem is quite simple, but its solution is not obvious.
Imagine that we are working on a Typescript project, and we have defined an interface with several fields using different types. Let’s take as an example a simple interface representing a blog post.
continue reading -
How To Take Static And Animated Screenshots On Ubuntu
Picking tools to take screenshots is rarely seen as a primary concern, but I believe it is a considerably underrated topic. I do take a lot of them in my daily job: to document an issue, to show something to a member of my team, to illustrate a presentation, a blog article, and so on.
continue reading -
Handle Several PostgreSQL Versions With Docker
Photo by Baby Natur.
PostgreSQL is a powerful, open-source object-relational database known as the world’s most advanced open source database. It is often compared to MySQL, which on its side is known as the world’s most popular open-source database.
continue reading -
Who Owns The Web?
Photo by Bill Oxford.
I know the question might sound a bit silly. Nobody owns the web; anyone connected to the network can be a host and deliver content; that’s the beauty of the internet!
But if you do so, you will indeed be able to access your server, but only by its IP address, something like 176.12.57.1. Good luck with finding anyone to visit your page!
continue reading -
Automatically Remove Unused Imports From Your JS Projects
Photo by The Creative Exchange.
Recently, I came across a substantial Angular project with a lot of unused imports. It is not a big deal, but it looked pretty messy, which I find to be a pity as automatically removing them is pretty straightforward.
continue reading -
Manage Your Terminals With Tmux
Photo by Levi Stute.
If you often need to use several terminals, you probably have already felt the need to manage them more easily.
Indeed, as one of our main tools, enhancing our use of the shell is of great benefit to us as developers.
This is the reason why, following my post on the z shell, I want to share my setup with you to transform the pain of launching and using multiple terminals into a much more enjoyable experience.
continue reading -
An Enhanced Shell With ZSH
When I started my first work as a developer, the rules were clear:
We request our employees to work on Unix systems so they get used to our servers’ environment.
My New Boss
Which meant I had to switch to Linux.
continue reading -
Git Aliases for an Efficient Workflow
Git is one of the essential tools for a developer, the first thing anyone wanting to start a coding journey should learn, as emphasized in the New Developer? You should’ve learned Git yesterday article from Brandon Morelli.
continue reading