]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
add example git configuration
authorAlan T. DeKok <aland@freeradius.org>
Fri, 7 Mar 2025 11:55:03 +0000 (06:55 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 7 Mar 2025 13:07:38 +0000 (08:07 -0500)
should be added a ~/.gitconfig

scripts/build/gitconfig [new file with mode: 0644]

diff --git a/scripts/build/gitconfig b/scripts/build/gitconfig
new file mode 100644 (file)
index 0000000..3632d9f
--- /dev/null
@@ -0,0 +1,79 @@
+#
+#  Suggested contents for ~/.gitconfig
+#
+
+
+#
+#  Remove trailing whitespace from files
+#
+[apply]
+        whitespace = strip
+[add]
+        whitespace = strip
+[move]
+        whitespace = strip
+
+#
+#  On push. automatically set up a remote and follow the tags,
+#  so you don't have to do --set-upstream
+#
+[push]
+       default = simple
+       autoSetupRemote = true
+       followTags = true
+
+#
+#  Rebase on git pull, so your changes are always on top of the remote
+#  ones.  Merges are bad.
+#
+[pull]
+       rebase = true
+
+#
+#  Rebase merges, instead of creating merge commits.
+#
+#  Stash local changes before rebase, and pop them afterwards.
+#
+#  "updateRefs" means that more commits are rebased when pulling
+#  patches from multiple branches, which helps keep the history as a
+#  linear set of commits.
+#
+[rebase]
+       rebaseMerges = true
+       autoStash = true
+       updateRefs = true
+
+#
+#  Don't throw away data!
+#
+[mergetool]
+       keepBackup = true
+#
+#  Make diffs look better.
+#
+[diff]
+        algorithm = histogram
+        colorMoved = plain
+        mnemonicPrefix = true
+        renames = true
+
+#
+#  Make things prettier
+#
+[column]
+        ui = auto
+[branch]
+        sort = -committerdate
+[tag]
+        sort = version:refname
+
+#
+#  More useful things
+#
+[help]
+        autocorrect = prompt
+[commit]
+        verbose = true
+[rerere]
+        enabled = true
+        autoupdate = true