Working with GitHub Repository
Understand some basic commands used to maintain a project on the GitHub Version Control System (VCS).
We'll cover the following...
Learning version control isn’t hard, but we do need to try concepts on a simple project before tackling big problems in the wild. We will start with the GitHub VCS. Use the terminal given at the end of this lesson and work through the following exercises with a simple codebase.
Create repository
First, we will create a repository using the terminal, and add some files to it. This will be our master repository. Then, we’ll work on the trunk or default branch. Our first commit will look like the left side of the following figure:
Work on the trunk
We will make some changes and commit them. Now we can do a couple of more commits. Get a log to show the history; it should include change-set (or revision) numbers and summaries of your changes. Update to a prior version.
Interact with a coworker
Either we can borrow a coworker or play along using two working trees. Make changes from both places and commit; pull changes from each other if using a distributed system. Now we’re at the right side of the previous figure.
We will change different files and watch the VCS automatically merge. See what happens when both you and your co-worker make a change to ...