Introduction....9
Chapter 1 Git & GitHub Overview....11
What Is Git?....12
What Is Version Control?....14
How To Save Versions in Git?....16
Collaborating on Git & GitHub – Remote Repository....19
Collaborating on Git & Git Hub – Branch....21
Git & GitHub Basic Life Cycle....23
Chapter 2 Git & GitHub Initial Settings....28
Git & GitHub Initial Settings Overview....29
Key Tool Preparation (1) - for Mac....33
Key Tool Preparation (2) - Windows....42
Key Tool Preparation (3) – Linux Remote Server....60
Git User Settings – git config....66
Create GitHub Account....71
GitHub Access Authentication Settings....77
Generating PAT (Personal Access Token)....79
GitHub SSH Setup....84
Chapter 3 Git & GitHub Project Setup....94
Three Cases in Git & GitHub Project Setup....96
Git & GitHub Project Setup Overview in Different Cases....98
Building Remote Collaboration Practice Environment....104
Project Initiator – Key Steps To Launch Git Project....117
Project Initiator – Create Local Repository (git init)....120
Project Initiator – Make the First Commit....124
Project Initiator – .gitignore File....129
Project Initiator – Create Remote Repository....135
Project Initiator – Link Between Remote and Local Repositories (git remote add)....140
Project Initiator – Upload Local Repository to Remote Repository (git push)....143
Project Initiator – Grant Remote Repository Access to Project Members....145
Project Member – Start Project As Collaborator....155
Project Member – Create Copy of Project Code on Local Computer (git clone)....157
Non-Member – Start Project With Replica of Existing Repository (Fork)....165
Fork vs. Clone....175
Chapter 4 Edit & Commit....177
Git Regular Workflow – Edit & Commit....179
Edit and Commit Overview (1)....181
Add Files to Staging Area – git add....185
Commit Files – git commit....187
HEAD and INDEX....191
Check Status of Working Tree and Staging Area – git status....193
Check Commit Histories – git log....199
Check Differences – git diff....202
1-Inprogress....211
Undo Changes – git reset....217
Delete Files – git rm....228
Edit and Commit Overview (2)....231
Chapter 5 Work With Branches....234
Git Regular Workflow – Work With Branches....236
What Is Branch?....238
Branch Operation Basic Life Cycle....244
Create Branch and Check Branch Status – Git Branch....247
Switch Current Branch (1) – Git Checkout....253
Switch Current Branch (2) – Git Switch....266
Merge Branches – Git Merge....268
Fast-Forward Merge....275
Non-Fast-Forward Merge (No Option)....282
Non-Fast-Forward Merge (--no-ff Option)....288
Squash Merge....293
Rebase Branch – Git Rebase....299
Managing Conflict....304
Stash Changes – Git Stash....310
Chapter 6 Remote Collaboration....319
Git Regular Workflow – Remote Collaboration....321
Remote Collaboration Overview....323
Link With Remote Repository – Git Remote....327
Upload to Remote Repository – Git Push....335
Download Remote Repository and Merge to Local Repository – Git Pull....346
Get Remote Repository Information to Local Repository – Git Fetch....354
Pull vs. Fetch....369
Request for Review and Merge – Pull Request....371
Merge Operation Using GitHub....386
Chapter 7 Supplemental Topics....399
Git Key Commands and GitHub Key Features....400
Git & GitHub Glossary....405
GitHub Other Features....410
About D-Libro....412
This book demystifies the complexities of version control and remote collaboration using Git and GitHub, breaking them down into accessible, step-by-step chapters that ensure you grasp the fundamental concepts needed to manage your coding projects efficiently.
This guide not only introduces you to the essentials of Git and GitHub but also equips you with the knowledge to effectively plan, implement, and manage your software development projects.
It's the perfect starting point for anyone eager to enhance their coding skills and collaborative abilities.
With its clear, step-by-step instructions and visual aids, you are guaranteed an engaging and insightful learning experience.
GET YOUR COPY TODAY AND JOIN THE RANKS OF SUCCESSFUL DEVELOPERS WHO HAVE MASTERED VERSION CONTROL AND COLLABORATION WITH OUR COMPREHENSIVE GUIDE.