Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Data Oriented Development with Angularjs

You're reading from   Data Oriented Development with Angularjs

Arrow left icon
Product type Paperback
Published in Apr 2015
Publisher
ISBN-13 9781784398057
Length 156 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Manoj Waikar Manoj Waikar
Author Profile Icon Manoj Waikar
Manoj Waikar
Arrow right icon
View More author details
Toc

Initial Git setup

Now before we start playing with Git to create repositories and adding/modifying stuff, there are a few things we should do to configure Git for the first time. Once we've done these, we'll hardly modify these settings, though we may if needs be. The first thing we need to do is set up our identity by specifying a username and an e-mail address. This is important because every Git commit uses this information, as shown in the following command:

$ git config --global user.name "John Doe"
$ git config --global user.email johndoe@example.com

The global flag sets this information at machine level, so we need to do this only once (until we need to change it), or we can configure it on a per-project basis by running this command without the global option. We can also configure the editor which will be used while typing a (commit) message. Once we are done configuring it, we can run the following command to check all the settings:

$ git config --list
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Modal Close icon
Modal Close icon