![]() ![]() ![]() That’s it.Ī Git repository tracks the history of all changes inside the repository through a hidden. Then there’s a bit of secure file transfer magic in front of that directory that lets you sync up changes. A Git repository is nothing terribly special it’s simply a directory, containing code, text or other assets, that tracks its own history. What is cloning?Ĭloning is exactly what it sounds like: creating a copy, or clone, of a repository. So, first, you’ll start with the most basic aspect of Git: getting a repository copied to your local system via cloning. It’s important to also understand the why of Git to gain not just a better understanding of what’s going on under the hood, but also to understand how to fix things when, not if, your repository gets into a weird state. That explains the how aspect of Git, but, if you’ve worked with Git for any length of time (or haven’t worked with Git for any time at all), you’ll know that the how is not enough. The preceding chapter took you through a basic crash course in Git, and got you right into using the basic mechanisms of Git: cloning a repo, creating branches, switching to branches, committing your changes, pushing those changes back to the remote and opening a pull request on GitHub for your changes to be reviewed. Appendix 1: Installing and Configuring Git ![]() gitignoreħ.11 Challenge: Delete a branch with commitsġ0.6 Challenge: Create a non-fast-forward merge Section I: Beginning Git Section 1: 12 chapters Show chapters Hide chaptersĤ.5 Challenge: Move, delete and restore a fileĥ.6 Challenge: Populate your local. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |