Commit graph

24 commits

Author SHA1 Message Date
Bruno BELANYI cf779c41dc [ADD][GIT] Prune branches and tags on fetch 2020-12-12 14:12:42 +01:00
Bruno BELANYI f21c57ded3 [UPDATE][GIT] Use main as default branch name 2020-12-12 14:12:42 +01:00
Bruno BELANYI d6e18ae3ec [ADD][GIT] More files to ignore 2020-12-12 14:12:42 +01:00
Bruno BELANYI 6c106f6170 [ADD][GIT] Include email configuration
I do not wish to version control my email configuration itself.
2020-12-12 14:12:42 +01:00
Bruno BELANYI 488453993e [UPDATE][GIT] Use personal mail domain 2020-12-12 14:12:42 +01:00
Bruno BELANYI 537e88320a [FIX][GIT] Alias to fixup skips other fixups 2020-12-12 14:12:42 +01:00
Bruno BELANYI 6296ba2187 [ADD][GIT] Alias to fixup last commit on file 2020-12-12 14:12:42 +01:00
Bruno BELANYI e0e5f22bb2 [ADD][GIT] Use EPITA identity for relevant repos 2020-12-12 14:12:42 +01:00
Bruno BELANYI 1b12a8e1c9 [UPDATE][GIT] Ignore GDB history files 2020-12-12 14:12:42 +01:00
Bruno BELANYI c6b49eb750 [UPDATE][GIT] Ignore compilation database files 2020-12-12 14:12:42 +01:00
Bruno BELANYI 5fc613a7c0 [ADD][GIT] Alias to push to new branch & track it 2020-12-12 14:12:42 +01:00
Bruno BELANYI bbbac941ce [UPDATE][GIT] Ignore Python-related files 2020-12-12 14:12:42 +01:00
Bruno BELANYI df7220c155 [ADD][GIT] Ignore localrc scripts 2020-12-12 14:12:42 +01:00
Bruno BELANYI 83d3ee0624 [UPDATE][GIT] Use tab-based indent in gitconfig
When you use `git config --global ...` to write to this file, it uses
tabs to indent the configuration options. This makes the file more
consistent with Git's way of writing the configuration.
2020-12-12 14:12:42 +01:00
Bruno BELANYI 51ef52513e [ADD][GIT] Alias related to 'assume-unchanged' 2020-12-12 14:12:41 +01:00
Bruno BELANYI 8a9cc1f98e [UPDATE][GIT] Use XDG_CONFIG_HOME scheme
Git supports looking for its configuration in
$XDG_CONFIG_HOME/git/config and a global ignore file in
$XDG_CONFIG_HOME/git/ignore in recent versions.
2020-12-12 14:12:41 +01:00
Bruno BELANYI a7bdded5c6 [ADD][GIT] Alias m4 to vimdiff 4-window view
Sometimes it is useful to also have the base file accessible when
merging branches. This view still has the local file on the left and the
remote branch on the right, with the base in the middle and the result
at the bottom.

The d1o/d2o/d3o take from the local/base/remote for the current file.
2019-10-19 05:46:29 +02:00
Bruno BELANYI 4e6821a0f2 [ADD][GIT] Use vim-fugitive as default mergetool
I really like the way vim-fugitive show a merge conflict by having our
local index on the left (the target), and the remote changes on the
right (what we're trying to merge with our branch). The result is
obviously the file in the middle.

The d2o and d3o mappings take from local/remote for the current chunk.
2019-10-19 05:46:29 +02:00
Bruno BELANYI 9b71074511 [UPDATE][GIT] Re-order configuration file
I want the core and the user settings on top, all but the alias sections
and sections added by plug-ins to be in alphabetical order, then the
aliases, followed by plug-in related settings (such as git-lfs).
2019-10-19 05:46:29 +02:00
Bruno BELANYI 81ee5d3f67 [ADD][GIT] Use patience diff by default
The patience diff usually results in better patches than the default
myers algorithm.
2019-10-19 05:46:29 +02:00
Bruno BELANYI 826db6d2de [ADD][GIT] Better diff colors
I like having some colors for the meta-information shown during
diff operations.

Using the `diff-hightlight` script, you can get character-level
highlights of your diffs (just like GitHub and GitLab).
2019-10-19 05:46:29 +02:00
Bruno BELANYI 8225241746 [ADD][GIT] git-lfs configuration 2019-10-18 22:17:20 +02:00
Bruno BELANYI ecc2435f3e [ADD][GIT] Aliases for logging and misc utilities 2019-07-13 00:55:04 +02:00
Bruno BELANYI d9ca7787bb [ADD] git global configuration 2019-07-11 14:38:59 +02:00