Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Welcome to GIT - revisited

Hello,

Git is getting more popular and it's really good. So here is a quick introduction how to get started with it.

First step is to install the tool - you can download it from the official website:
https://git-scm.com/downloads

There are versions for many different OS such as Linux, Windows, Mac OS X and Solaris.

After installing it you should be able to open GIT bash where the fun begins :)

Set your user details such as name and e-mail - this will appear in the commits.
git config --global user.name <your_username>
git config --global user.email <your_email>


It's good to have nice merge tool. There are some supporting 3-way diffs and some usual 2-way diffs. Two of them are worth recommending at this point:

  • Meld - http://meldmerge.org/
  • Kdiff3 - http://kdiff3.sourceforge.net/ (supports also Windows OS)

Once you choose your favourite you can set it up for Git using the following command:
git config --global diff.tool <your_diff_tool>

If you want to display the list of Config settings use the command:
git config --list

Before you can start working with Git you should also set up your SSH keys. Follow our guide for setting them up:
How to set up SSH keys


Most common way of using Git is using the command line via Git Bash tool - and most of the users are OK with it. However there are some users who prefer graphic user interface - so good news is there are GUI tools for Git. Some of them are integrated in the development IDE such as for example Eclipse or NetBeans.
You can also install the dedicated tool such as for example:
  •  TortoiseGit - https://code.google.com/p/tortoisegit/



That's it basically. Cheers!



This post first appeared on IT Code Hub - Java, Mobile Apps, Linux And More, please read the originial post: here

Share the post

Welcome to GIT - revisited

×

Subscribe to It Code Hub - Java, Mobile Apps, Linux And More

Get updates delivered right to your inbox!

Thank you for your subscription

×