background preloader

Git

Facebook Twitter

Guide to installing 3rd party JARs. Although rarely, but sometimes you will have 3rd party JARs that you need to put in your local repository for use in your builds, since they don't exist in any public repository like Maven Central. The JARs must be placed in the local repository in the correct place in order for it to be correctly picked up by Apache Maven. To make this easier, and less error prone, we have provide a goal in the maven-install-plugin which should make this relatively painless. To install a JAR in the local repository use the following command: mvn install:install-file -Dfile=<path-to-file> -DgroupId=<group-id> \ -DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=<packaging> If there's a pom-file as well, you can install it with the following command: mvn install:install-file -Dfile=<path-to-file> -DpomFile=<path-to-pomfile> With version 2.5 of the maven-install-plugin it gets even better.

Mvn install:install-file -Dfile=<path-to-file> Generating SSH Keys. SSH keys are a way to identify trusted computers, without involving passwords. The steps below will walk you through generating an SSH key and adding the public key to your GitHub account. We recommend that you regularly review your SSH keys list and revoke any that haven't been used in a while. Tip: GitHub has a desktop client! You can use it without ever touching the command line. Tip: If you have GitHub for Windows installed, you can use it to clone repositories and not deal with SSH keys. It also comes with the Git Bash tool, which is the preferred way of running git commands on Windows. Step 1: Check for SSH keys First, we need to check for existing SSH keys on your computer. Ls -al ~/.ssh# Lists the files in your .ssh directory, if they exist Check the directory listing to see if you already have a public SSH key.

Id_dsa.pubid_ecdsa.pubid_ed25519.pubid_rsa.pub Tip: If you receive an error that ~/.ssh doesn't exist, don't worry! Step 2: Generate a new SSH key Add the copied key to GitHub: Git version control with Eclipse (EGit) Git version control with Eclipse (EGit) - Tutorial Copyright © 2009-2016 vogella GmbH Git with Eclipse (EGit) This tutorial describes the usage of EGit; an Eclipse plug-in to use the distributed version control system Git. This tutorial is based on Eclipse 4.5 (Mars). 1. Completely new to Git? In case you are completely new to the Git version control system you might want to read more about its concepts. 2. The Eclipse IDE has excellent support for the Git version control system. The EGit functionality is based on the JGit library. 3. It is good practice to place your Git repositories outside the Eclipse workspace. This tutorial describes the usage of EGit. This tutorial also explains the basic Git terminology, e.g., what is a commit, branch, etc. 5.

Most Eclipse IDE downloads from Eclipse.org contain support for Git in their default configuration. If the Git functionality is missing in your Eclipse IDE installation, you can install it via the Eclipse installation manager. 6. 6.1. 6.2. 6.3. Documentation. Documentation Reference Reference Manual The official and comprehensive man pages that are included in the Git package itself. Quick reference guides: GitHub Cheat Sheet | Visual Git Cheat Sheet Book Pro Git The entire Pro Git book written by Scott Chacon and Ben Straub is available to read online for free. Videos See all videos → External Links The External Links section is a curated, ever-evolving collection of tutorials, books, videos, and other Git resources. Git - BitBucket - download source as ZIP. Generating SSH Keys. Code School - Try Git.