Code Monkey home page Code Monkey logo

git_config's Introduction

Introduction

This is a shared gitconfig file to be used on different machines. This document describes how to use this on different projects.

Use

The easiest way is to create a smybolic link to gitconfig file. This works on both linux and windows systems (if using unix like terminal like git bash).

note On windows 10, there is some weird behaviour and I cannot get symbolic links to work, so the following command just copies the gitconfig without actually creating a sym link.

ln -s ~/git_config/.gitconfig ~/.gitconfig

The email address is intentionally left out of the config so that you can use this for work and home, and you just have to specify which email address you are using.

You will have to also create the following file touch ~/.git_global_config

Enter the following

[user]
	email = [email protected]

Make sure that you have your name already defined, if not, you can add it above or use the

	git config --global user.name "Enrico Perera"

Optional

To make the git diffs (not difftool) look better, use the following plugin called diff-so-fancy

The diff-so-fancy is a submodule of this repo and can be init with the

git submodule update --init

or

git submodule update

Then follow the readme contained within the diff-so-fancy repository to configure. Please read the github page to see if its been updated or new configuration options: diff-so-fancy Github

But as a recap, this is the default settings that need to be added to the gitconfig file in order for diff-so-fancy to work.

[core]
	pager = ~/git_config/diff-so-fancy/diff-so-fancy | less --tabs=4 -RFX
[color]
	ui = true
[color "diff-highlight"]
	oldNormal = red bold
	oldHighlight = red bold 52
	newNormal = green bold
	newHighlight = green 22
[color "diff"]
	meta = 11
	frag = magenta bold
	commit = yellow bold
	old = red bold
	new = green bold
	whitespace = red reverse

git_config's People

Contributors

efox29 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.