Posts tagged with git
-
Git repo juggling
May 28, 2021This post shows how to use
git subtree
commands to move git repositories around. Perfect if you’re indecisive about monorepo vs multirepo. -
Migrating part of a git repo to a new repo
Jul 28, 2020I had created some tools inside a monorepo and I wanted to move them out to their own repo, preserving the full commit history.
-
clang-format as a git filter
Jan 27, 2019clang-format is a tool that can format source code of C-like languages (C / C++ / Java / JavaScript / Objective-C / Protobuf). It supports various presets but it is also possible to fine tune its behavior with a configuration file named
.clang-format
. It has quite a lot configuration options. -
Publishing git tags for Maven projects in Bitbucket Pipelines
Oct 30, 2018Update 2018-11-24: I’ve put together a maven plugin that can also publish git tags in Bitbucket Cloud, plus it checks there are no gaps in a semver sequence. It’s available here.
-
Using Spring Boot Actuators
Jul 7, 2018Implementing Spring Boot actuators is not very difficult. In this post I’ll show what you can get for free, without adding any code.
-
Playing with TeamCity on Azure
Mar 10, 2018I spent the past two days playing with setting up TeamCity on Azure. This is just a poc more than anything else, but it’s always fun to do something new. I had to fiddle about with some things that didn’t work as expected, so here are some notes to remember what I did.
-
Removing git submodules
Sep 30, 2017Submodules is an advanced git feature. It allows you to have a folder inside your repository which serves as a link to a different repository. Working with submodules is more complicated and I haven’t had a real need for it so far. Last week I had to deal with a codebase which was doing heavy usage of submodules, but without a good reason, so I got rid of them.
-
On git branching models
Sep 23, 2017Usually, when you work with a version control system like git, development happens in multiple branches. It’s funny to see people’s faces when you tell them that the author of Continuous Delivery, Dave Farley, advocates “no branches”. I had that same surprised face myself the first time I heard that concept. But, so far, I haven’t really worked somewhere where no branches were used.
-
Extracting code metrics from git
Feb 22, 2017TL;DR: I wrote a bash script that walks through your git repository history and calculates number of commits, number of merged pull requests, number of files and total number of lines of code, broken down per month.
-
git tip: Delete merged branches
Jan 26, 2016If you want to delete your local branches that have already been merged to master remotely, run this in a bash shell:
-
Syncing Sublime Text 3 with Git
Aug 17, 2015I use Sublime Text 3 at home and at work. I use it on many computers and platforms. In this kind of setup, maintaining a consistent configuration across multiple installations can be a challenge. It just doesn’t feel right, when you switch to work on a different laptop and suddenly some package is missing here or some setting is different there. You want to simply have the same settings everywhere, without spending too much time on configuration.
-
Synchronizing App_Data with git
Aug 26, 2012When you have a web application that stores data in it’s App_Data folder, at some point you’ll want to synchronize the development environment(s) with the live environment. This way your development machine will have the latest live data. This is a task that can be achieved with git.