EGit - vogella.com

Created Sunday 06 April 2014

http://www.vogella.com/tutorials/EclipseGit/article.html

Installation

Regular Eclipse plugin installation. In latest versions it is usually included.
URL:
http://download.eclipse.org/egit/updates

Setting up

If your Git is configured via terminal — will work.
If not — Window -> Preferences -> Team -> Git -> Configuration

Setup rules for ingoring files and dirs

For .gitignore syntax check gitignore manpage:
https://www.kernel.org/pub/software/scm/git/docs/gitignore.html

To remove already tracked files which were added to .gitignore
git rm -r --cached filename

To add ignored files to staging area
git add --force filename

Configure global cross-repository .gitignore settings (given there is a .gitignore file in ~/ dir)
git config --global core.excludesfile ~/.gitignore

Activate the Git toolbar

Window -> Customize perspective... check Git and Git Navigation Actions in the Command Groups Availability tab

Working with a local Git repo

Right-click on your project, select Team -> Share Project -> Git

It is recommended to place your Git repositories outside the Eclipse workspace, since the opposite may cause performanse issues

li



Backlinks: