Git

Git is a distributed version control system designed to handle everything from small to very large projects with speed and efficiency. Git is easy to learn and has a tiny footprint with lightning fast performance. It outclasses SCM tools like Subversion, CVS, Perforce, and ClearCase with features like cheap local branching, convenient staging areas, and multiple workflows.Git

Department offers access to git repository. Right now we have no documentation for git, but web is full of guides (good one can be found from Git’s official website).

You can also find an online book and guides about git: Pro Git book, written by Scott Chacon, A Visual Git Reference

Gitlab, our git service

Our git service is powered by gitlab.

To login you need Niksula account.

Service is hosted at git.niksula.hut.fi

Tips and tricks

Enable colors in command outputs:

git config --global color.ui auto

Alias for fancy commit history:

git config --global alias.lol "log --graph --decorate --pretty=oneline --abbrev-commit --all"

Alias for listing all ignored files:

git config --global alias.ls-ignored "ls-files -o -i --exclude-standard"

You may create a .gitignore file (and add it in the repository) that contains filename patterns (globs) if you don’t want to see some files in git status; this is useful for eg. objects or other files your build process generates but you don’t want versioned.

Laboratory use

For staff there is another service. Read more.


This page is maintained by <www-admin@niksula.hut.fi>