Master Git and maintain your projects better through version control
Get to grips with Git’s typical workflows, advanced functions, and their implementations
Learn the key Git commands to better manage your repository
Description
Whether you’re looking for a book to deepen your understanding of Git or a refresher, this book is the ultimate guide to Git.
Git for Programmers comprehensively equips you with actionable insights on advanced Git concepts in an engaging and straightforward way. As you progress through the chapters, you’ll gain expertise (and confidence) on Git with lots of practical use cases.
After a quick refresher on git history and installation, you’ll dive straight into the creation and cloning of your repository. You’ll explore Git places, branching, and GUIs to get familiar with the fundamentals. Then you’ll learn how to handle merge conflicts, rebase, amend, interactive rebase, and use the log, as well as explore important Git commands for managing your repository.
The troubleshooting part of this Git book will include detailed instructions on how to bisect, blame, and several other problem handling techniques that will complete your newly acquired Git arsenal.
By the end of this book, you’ll be using Git with confidence. Saving, sharing, managing files as well as undoing mistakes and basically rewriting history will be a breeze.
Who is this book for?
If you have basic understanding of Git and want to strengthen your command over advanced techniques and navigate different functions, this book is for you. Knowing the fundamentals of Git will help you get the most out of this book, but beginners willing to invest some extra effort will be able to follow along as well.
What you will learn
Create remote and local repositories and learn how to clone them
Understand the difference between local and remote repositories
Use, manage, and merge branches back into the main branch
Utilize tools to manage merge conflicts
Manage commits on your local machine through interactive rebasing
Use the log to gain control over all the data in your repository
Use bisect, blame, and other tools to undo Git mistakes
Terrible book.Author has no idea how to teach.Let me give you an example:Author recommends to install shell for pretty looks. I don't want that, so I skipped it and used the original cmd. It turns out whenever nothing works unless you google yourself why you're getting an error with as simple as a command git status, it gives you an error if you don't use git init. The author does not mention this, he assumes you should know this, yet he mentioned he does not expect to know anything about git.The list goes on, use git add name, guess what you get another error, good luck with you fixing this on your own.The author does not expect you face these issues ? still on page 21,Page 25 the author said click on staged, you look at his figure and there's no such a freaking button shown, where the heck is this button that I should click onyou want me to continue ...Don't waste your money
Amazon Verified review
davidJan 31, 2022
2
The author uses three interfaces: VS Code, Github Desktop, and Git CLI; to show some of the basic commands you'll often use with version control using git. Some of the CLI commands in the code examples aren't accurate (committing and adding a file in a single command), and some of the most interesting stuff doesn't even include CLI examples or is a mix of both GUI interface and CLI.A book on the topic, preferably for advanced team-oriented practices, deserves to be published - but this book doesn't fit the bill, especially for the price-tag it's currently at.I would suggest saving your money and using documentation or stackoverflow.
Amazon Verified review
Brian BarnettOct 12, 2021
5
I've been developing software for many years in the Microsoft stack. Along my journey, for source control I’ve used Visual SourceSafe (VSS), Team Foundation Server (TFS), and now Azure DevOps and GitHub. However, only within the last year have I begun to use Git. Having used TFS for a long time this is what I’ve been used to so switching to Git was somewhat of a paradigm shift. I knew Git was the new standard and had a lot of advantages, so I knew it was the right tool to use. As Jesse mentions in his book though, Git can be confusing especially with its many commands so I was having a hard time grasping what command to use when.Jesse does an excellent job distilling all of Git down to the core of what you really need to know to be successful as a developer, not exclusively, but especially if you are in a team environment. He demystifies many Git commands and concepts, particularly ones that tend to frighten the most hardened of developers. Rebase anyone? He doesn’t dive into the depths of how Git does what it does. He stays near the surface, giving you the key pieces of information you need to get your job done. Which is exactly what I wanted from a very practical book on Git.This is a great book that helps you get up to speed on the Git essentials quickly. He takes a very scenario-based approach, introducing you to common scenarios and guiding you through them, even walking you through how to get out of trouble should you find yourself making a wrong turn along the way.He uses the CLI, Visual Studio and Git Desktop for his demonstrations. Though at times demonstrating in all three tools can seem tedious and unnecessary, I found it helpful. Usually, in his multi-developer scenarios, one developer would use the CLI while another would use Visual Studio for example. The same will be true on your teams. You will have developers that will tend to use one tool over the other so being familiar with each is helpful. Learning the commands in the CLI is super beneficial for every developer. And I highly recommend installing PrettyGit, which Jesse mentions and uses. I'd done that prior to reading the book and can attest that it is very helpful while working in the CLI.I work in Visual Studio everyday, so I appreciated the fact he used Visual Studio. However, I have started using Visual Studio Code some and it would have been nice to have had demonstrations using it. However, I realize picking which tools to use in a book like this can be a hard decision to make. You can’t use them all otherwise the book would be a thousand pages long and hard to follow.I enjoyed the Challenges at the end of every chapter. They were a great way to practice what you learned in the chapter and solidify the concepts. Learn by doing is always the best approach.Thanks, Jesse, for a great book. You’ve helped this long-time developer, new to Git, become proficient in it and not be afraid of trying some of the more 'adventurous' commands :-). No matter your level of experience with Git, you will learn something new in this book. Highly recommended!
Amazon Verified review
RandallOct 08, 2021
4
I really like this book and was excited to see a new title published the topic since GIT is the defacto standard in software development. The book addressees the topics and will be a good reference to keep in my Kindle library. The problem I have is the switching between command line, Visual Studio Code and Docker Desktop loses some of the continuity and flow the book otherwise has. For example, if the read prefers to uses the Mac/os or linux command line and Atom as an editor, it is silly to have search where to read next to skip over the other two methods. Sure, perhaps somedays I may be assigned to a project where VSC is used, but I would rather but a dedicated book that ignores the other two ways.Overall, nice book from this author. I look forward to seeing more work from him as he is a valuable writer and instructor in the IT community.
Amazon Verified review
Ricardo Jorge Melo JóiaOct 07, 2021
5
Either you're a seasoned developer or just starting, git is already or will become one of the most used tools in your toolbox. Jesse's book is a cookbook with the most used commands that you might need and the "infamous" git rebase.The examples are clear and relatable to real world problems and they are shown using both the terminal and git integrations such as git for visual studio and github desktop! Either you use Windows, Linux or Mac, Jesse has your back! Examples on how to get it installed and running are provided.This book guides you through creating a repo, branching strategies, merging, pull requests and how to handle merge conflicts, how to amend commits, rebasing mentioned above and cherry-picking which you might and probably will need at some point.Jesse provides in his book plenty of other tips and tricks to make you a git ninja, deffo a book to have in your collection.
Jesse Liberty is a full-time hands-on programmer, specializing in C#, git, and .NET MAUI. He hosts the popular Yet Another Podcast and is the author of more than a dozen best-selling programming books.
Liberty is a Certified Xamarin Developer, a Xamarin MVP and a Microsoft MVP. He was a Technical Evangelist for Microsoft, Distinguished Software Engineer at AT&T; Software Architect for PBS and Vice President of Information Technology at Citibank, and he was on the teaching staff at Brandeis University. Jesse is a recognized expert and has spoken at conferences world-wide.
Economy: Delivery to most addresses in the US within 10-15 business days
Premium: Trackable Delivery to most addresses in the US within 3-8 business days
UK:
Economy: Delivery to most addresses in the U.K. within 7-9 business days. Shipments are not trackable
Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days! Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands
EU:
Premium: Trackable delivery to most EU destinations within 4-9 business days.
Australia:
Economy: Can deliver to P. O. Boxes and private residences. Trackable service with delivery to addresses in Australia only. Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro Delivery time is up to 15 business days for remote areas of WA, NT & QLD.
Premium: Delivery to addresses in Australia only Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.
India:
Premium: Delivery to most Indian addresses within 5-6 business days
Rest of the World:
Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days
Asia:
Premium: Delivery to most Asian addresses within 5-9 business days
Disclaimer: All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.
Unfortunately, due to several restrictions, we are unable to ship to the following countries:
Afghanistan
American Samoa
Belarus
Brunei Darussalam
Central African Republic
The Democratic Republic of Congo
Eritrea
Guinea-bissau
Iran
Lebanon
Libiya Arab Jamahriya
Somalia
Sudan
Russian Federation
Syrian Arab Republic
Ukraine
Venezuela
What is custom duty/charge?
Customs duty are charges levied on goods when they cross international borders. It is a tax that is imposed on imported goods. These duties are charged by special authorities and bodies created by local governments and are meant to protect local industries, economies, and businesses.
Do I have to pay customs charges for the print book order?
The orders shipped to the countries that are listed under EU27 will not bear custom charges. They are paid by Packt as part of the order.
A custom duty or localized taxes may be applicable on the shipment and would be charged by the recipient country outside of the EU27 which should be paid by the customer and these duties are not included in the shipping charges been charged on the order.
How do I know my custom duty charges?
The amount of duty payable varies greatly depending on the imported goods, the country of origin and several other factors like the total invoice amount or dimensions like weight, and other such criteria applicable in your country.
For example:
If you live in Mexico, and the declared value of your ordered items is over $ 50, for you to receive a package, you will have to pay additional import tax of 19% which will be $ 9.50 to the courier service.
Whereas if you live in Turkey, and the declared value of your ordered items is over € 22, for you to receive a package, you will have to pay additional import tax of 18% which will be € 3.96 to the courier service.
How can I cancel my order?
Cancellation Policy for Published Printed Books:
You can cancel any order within 1 hour of placing the order. Simply contact customercare@packt.com with your order details or payment transaction id. If your order has already started the shipment process, we will do our best to stop it. However, if it is already on the way to you then when you receive it, you can contact us at customercare@packt.com using the returns and refund process.
Please understand that Packt Publishing cannot provide refunds or cancel any order except for the cases described in our Return Policy (i.e. Packt Publishing agrees to replace your printed book because it arrives damaged or material defect in book), Packt Publishing will not accept returns.
What is your returns and refunds policy?
Return Policy:
We want you to be happy with your purchase from Packtpub.com. We will not hassle you with returning print books to us. If the print book you receive from us is incorrect, damaged, doesn't work or is unacceptably late, please contact Customer Relations Team on customercare@packt.com with the order number and issue details as explained below:
If you ordered (eBook, Video or Print Book) incorrectly or accidentally, please contact Customer Relations Team on customercare@packt.com within one hour of placing the order and we will replace/refund you the item cost.
Sadly, if your eBook or Video file is faulty or a fault occurs during the eBook or Video being made available to you, i.e. during download then you should contact Customer Relations Team within 14 days of purchase on customercare@packt.com who will be able to resolve this issue for you.
You will have a choice of replacement or refund of the problem items.(damaged, defective or incorrect)
Once Customer Care Team confirms that you will be refunded, you should receive the refund within 10 to 12 working days.
If you are only requesting a refund of one book from a multiple order, then we will refund you the appropriate single item.
Where the items were shipped under a free shipping offer, there will be no shipping costs to refund.
On the off chance your printed book arrives damaged, with book material defect, contact our Customer Relation Team on customercare@packt.com within 14 days of receipt of the book with appropriate evidence of damage and we will work with you to secure a replacement copy, if necessary. Please note that each printed book you order from us is individually made by Packt's professional book-printing partner which is on a print-on-demand basis.
What tax is charged?
Currently, no tax is charged on the purchase of any print book (subject to change based on the laws and regulations). A localized VAT fee is charged only to our European and UK customers on eBooks, Video and subscriptions that they buy. GST is charged to Indian customers for eBooks and video purchases.
What payment methods can I use?
You can pay with the following card types:
Visa Debit
Visa Credit
MasterCard
PayPal
What is the delivery time and cost of print books?
Shipping Details
USA:
'
Economy: Delivery to most addresses in the US within 10-15 business days
Premium: Trackable Delivery to most addresses in the US within 3-8 business days
UK:
Economy: Delivery to most addresses in the U.K. within 7-9 business days. Shipments are not trackable
Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days! Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands
EU:
Premium: Trackable delivery to most EU destinations within 4-9 business days.
Australia:
Economy: Can deliver to P. O. Boxes and private residences. Trackable service with delivery to addresses in Australia only. Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro Delivery time is up to 15 business days for remote areas of WA, NT & QLD.
Premium: Delivery to addresses in Australia only Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.
India:
Premium: Delivery to most Indian addresses within 5-6 business days
Rest of the World:
Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days
Asia:
Premium: Delivery to most Asian addresses within 5-9 business days
Disclaimer: All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.
Unfortunately, due to several restrictions, we are unable to ship to the following countries: