Git diff multiligne

Posté le mer. 05 mars 2014 • Tags : git, diff, config

Lors d'une modification d'un bout de code, j'ai perdu la fin d'une ligne…

J'ai du faire un git diff dans mon terminal et copié la ligne (mais pas entièrement…).

J'ai donc refais un git diff dans mon terminal et je me suis aperçu que ma ligne qui devait être sur …

Lire la suite

Toujours afficher le protocole dans Firefox

Posté le lun. 10 juin 2013 • Tags : web, config

Souvent lorsque je copie/colle une url depuis firefox j'ajoute http:// or lors de la copie celui-ci est copié… Je me retrouve donc avec deux fois http://

Pour résoudre ce problème j'affiche toujours le protocole dans Firefox :

Ecrire dans la barre d'adresse :

about:config

Rechercher :

browser.urlbar.trimURLs

Modifier la …

Lire la suite

Mon fichier .gitignore

Posté le lun. 13 août 2012 • Tags : git, config, file

Voilà mon petit fichier .gitignore :

# Ignore files from git

# ._ files (Mac Os X)
._*

# .DS_STORE (Mac Os X)
.DS_STORE

# .swp (Vim)
*.swp
Lire la suite

Ajout dans mon .vimrc de matchadd() & highlight

Posté le ven. 27 avril 2012 • Tags : vim, config, file

Petit ajout dans mon fichier .vimrc :

" Highlight To do list with green background
highlight Todo ctermfg=black ctermbg=green guifg=black guibg=green
highlight Notice ctermfg=white ctermbg=blue guifg=white guibg=blue
highlight Fixme ctermfg=white ctermbg=red guifg=white guibg=red
" Match todolist, notice, fixme
:call matchadd('Todo …
Lire la suite

Update .gitconfig

Posté le ven. 13 avril 2012 • Tags : git, config

Ajout du pull, push, diff et surtout stash :

[user]
  name = François LASSERRE
  email = mon@email.fr
[diff]
  tool = vimdiff
[color]
  branch = auto
  diff = auto
  status = auto
  interactive = auto
  ui = true
[alias]
  br = branch
  ci = commit -a
  co = checkout
  sh = show --color-words
  st = status
  di = diff
  ph = push
  pl = pull
  sta …
Lire la suite

Git mes fichiers de config gitconfig / gitignore

Posté le mar. 31 janvier 2012 • Tags : git, config

Fichier .gitconfig :

[user]
    name = François LASSERRE
    email = mon@email.fr
[diff]
    tool = vimdiff
[color]
    branch = auto
    diff = auto
    status = auto
    interactive = auto
    ui = true
[alias]
    br = branch
    ci = commit -a
    co = checkout
    sh = show --color-words
    st = status
    last = cat-file commit HEAD
    tree = log --graph --oneline --decorate
    graph = log --graph --decorate …
Lire la suite