Git: submodules, configs and hooks

Submodulies – way to handle nested workspaces

Git configuration
Three types:
1. Per whole system (–system key to access it)
2. Per user (–global key to access it), can override system level setting
3. Per repository (no specific key required), can override system and global (user) level setting

git config –list – lists all settings
git config –help – shows page with all possible config options

It is possible to export git repository into some archive.

Git Hooks

It is simple scripts that are invoked by git as result of some action. Each type of hook should be properly named (in accordance to its type) and located at hooks directory.

Client side. Three types: pre-commit (invoked before a commit), e-mail activity (working with patches), other (pre-rebase, post-checkout, post-merge).

Server side. Two types: pre/post-receive (before and after pushes to server – can reject some
user’s push) and update (for some branch updating)

Advertisements

About DmitryKrinitsyn
Software developer and muay thai adept

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: