Skip to content

Instantly share code, notes, and snippets.

Avatar

Tobias Sturm toebbel

View GitHub Profile
@wangkuiyi
wangkuiyi / pre-commit-clang-format
Last active Nov 10, 2020
Git pre-commit hook that invokes clang-format to reformat C/C++/Objective-C source code.
View pre-commit-clang-format
#!/bin/bash
# git pre-commit hook that runs an clang-format stylecheck.
# Features:
# - abort commit when commit does not comply with the style guidelines
# - create a patch of the proposed style changes
# modifications for clang-format by rene.milk@wwu.de
# This file is part of a set of unofficial pre-commit hooks available
# at github.
@pksunkara
pksunkara / config
Last active Jan 23, 2021
Sample of git config file (Example .gitconfig) (Place them in $XDG_CONFIG_HOME/git)
View config
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
username = pksunkara
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
pager = delta
[sendemail]
smtpencryption = tls