Skip to content

Instantly share code, notes, and snippets.

@msohn
msohn / git-custom-revert
Last active May 6, 2019 10:16
Revert a git commit appending the original commit message\
#!/bin/bash
# Copyright (C) 2019 Matthias Sohn
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@msohn
msohn / git-big-objects.sh
Last active June 26, 2023 15:31
Script to show n largest objects in a git repo's pack files.
#!/bin/bash
# -----------------------------------------------------------------------
# Copyright (C) 2013 Matthias Sohn <matthias.sohn@sap.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#