Git

From Proj3ctWiki
Jump to: navigation, search

Contents

Memos Git

Git ignore

Utiliser un fichier commun pour l'exclusion de fichier :

user@host$ git config --global core.excludesfile ~/.gitignore 
user@host$ printf ".project\n" >> ~/.gitignore

Git flow

Références :

Installation :

user@host$ wget -q -O - http://github.com/nvie/gitflow/raw/develop/contrib/gitflow-installer.sh | sh

Flow

Initialisation :

user@host$ git flow init

Nouvelle feature :

user@host$ git flow feature start login
user@host$ git flow feature finish login

Nouvelle release :

user@host$ git flow release start v0.1.0
user@host$ git flow release finish v0.1.0

Bare repository

A partir d'un repo déja existant :

user@host$ cd my_repo
user@host$ git clone --bare . ../new_repo_dir.git
Personal tools