Giter Club home page Giter Club logo

.gitconfig's Introduction

.gitconfig

Here you can find the .gitconfig file I use at work :). Hope it helps you!

[user]
	name = Eduard Bargues
	email = [email protected]
[alias]
	; REBASE
	ra = rebase --abort
	rc = rebase --continue
	r-dev = "!git r dev"
	r-develop = "!git r develop"
	r-master = "!git r master"
	r = "!f(){ git fetch; git rebase -i --autosquash origin/\"$1\"; }; f"
	; CHECKOUT
	cob-hot = "!f(){ git cob hotfix/\"$1\"; }; f"
	cob-bug = "!f(){ git cob bugfix/\"$1\"; }; f"
	cob-feat = "!f(){ git cob feature/\"$1\"; }; f"
	co-dev = checkout dev
	co-develop = checkout develop
	co-master = checkout dev
	co = "!f(){ git checkout \"$1\"; }; f"
	cob = "!f(){ git checkout -b \"$1\"; }; f"
	br = branch
	; COMMIT
	cp = cherry-pick
	cam = commit -m
	c-fixup = "!f() { git add .; git commit --fixup \"$(git rev-parse HEAD)\"; }; f" 
	c-break = "!git c break:\"$1\""
	c-feat = "!git c feat:\"$1\""
	c-fix = "!git c fix:\"$1\""
	c = "!f(){ git add .; git commit -m \"$1\"; }; f"
	; LOG
	l = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n''          %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
	; PUSH
	puuf = push -u -f origin
	puf = push -f
	; CONFIGURATION
	egc = config --global -e
	elc = config --local -e
	esc = config --system -e
    ; TRAILERS
    thanks-to = "!git trailer-add Co-authored-by"
    requested-by ="!git trailer-add Requested-by"
    reported-by = "!git trailer-add Reported-by"
    tested-by = "!git trailer-add Tested-by"
    trailer-add = "!f(){ GIT_EDITOR=\"git interpret-trailers --trailer='$1: $2' --in-place\" git commit --amend; }; f"
    ; MIX
    st = status
    hurry-develop = "!git hurry develop"
    hurry-master = "!git hurry master"
    hurry = "!f(){ git fetch; git rebase -i origin/\"$1\" --autosquash; git push -f -u origin \"$(git branch --show-current)\" }; f"
[color]
    ui = true
[color "status"]
    changed = yellow bold
    untracked = red bold
    added = green bold
[core]
	editor = code --new-window --wait
[diff]
	tool = vscode-diff
[difftool]
	prompt = false
[difftool "vscode-diff"]
	cmd = code --wait --diff $LOCAL $REMOTE 
[merge]
	tool = vscode-merge
[mergetool]
	keepBackup = false
[mergetool "vscode-merge"]
	cmd = code --wait $MERGED

.gitconfig's People

Contributors

eduardbargues 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.