clubmate.fi

A good[ish] website

Web development blog, loads of UI and JavaScript topics

Git: checkout files or folders from another branch

You probably knew that a branch can be "checked out" with the command git checkout <branch-name> , but interestingly enough, a single file…

Git: handy branching commands

Here’s a little cheat sheet to help deal with branches. Listing branches List branches: List remote branches: List remote branches that are…

Git: stashing

Stashing is a great tool to make life with branches a bit more fluent. Rationale Scenario: you're building a new feature in a dedicated…

Tab complete Git commands and branches

Here’s a quick post on the awesomeness of tab completion, and how it can be applied to Git commands and branch names. 👉 See also: my…

jQuery's .closest() function, and pure JavaScript alternatives

Here’s a boil-down on the jQuery’s .closest() method and 2 native JavaScript alternatives. jQuery’s .closest() function is great! Here’s…

Append and prepend elements with pure JavaScript

Adding element after and before other elements in the DOM, also known as appending or prepending. Pure JavaScript provides some handy…

Protect a directory or a domain with a password on NGINX server

If you have a login form that you don’t want people accessing, or other private service, it’s good to block access to it. 2015.05.02 — Added…

Git: removing files from the staging area and the tree

Removing stuff with git: just remove any file, remove files from the staging area, how to remove files that were not supposed to be added…

Sync large quantities of files or directories between local machine and server with rsync

A guide to syncing files between local and remote environment with rsync. rsync is an awesome tool, it’s designed to effortlessly move…

How to install the latest version of Git on an Ubuntu box

Here’s a short memo on how to tell apt-get about a new Git version. Install or update via apt-get Check if Git is installed and what version…

  • © 2022 Antti Hiljá
  • About
  • All rights reserved yadda yadda.
  • I can put just about anything here, no one reads the footer anyways.
  • I love u!