Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Git for Programmers

You're reading from   Git for Programmers Master Git for effective implementation of version control for your programming projects

Arrow left icon
Product type Paperback
Published in Jun 2021
Publisher Packt
ISBN-13 9781801075732
Length 264 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Jesse Liberty Jesse Liberty
Author Profile Icon Jesse Liberty
Jesse Liberty
Arrow right icon
View More author details
Toc

Table of Contents (16) Chapters Close

Preface 1. Introduction 2. Creating Your Repository FREE CHAPTER 3. Branching, Places, and GUIs 4. Merging, Pull Requests, and Handling Merge Conflicts 5. Rebasing, Amend, and Cherry-Picking 6. Interactive Rebasing 7. Workflow, Notes, and Tags 8. Aliases 9. Using the Log 10. Important Git Commands and Metadata 11. Finding a Broken Commit: Bisect and Blame 12. Fixing Mistakes 13. Next Steps
14. Other Books You May Enjoy
15. Index

Answer

Once again, there are many ways to answer this. I'll start by mirroring the RockyHorrorStash repo to RockyHorrorStash2, and then I will immediately clone it to my local repo.

I'll do the same thing with Panofy (to PanofyStash) and musicHandler2 (creating musicHandler2Stash). Now we have three repos we can work on:

  • musicHandler2Stash
  • PanofyStash
  • RockyHorrorStash

Let's begin with musicHandler2Stash by changing directory and getting a log of what is already there. Then let's open it in Visual Studio and do some work:

Figure 10.22: Log of MusicHandler2Stash

Let's make two changes by opening Visual Studio in that directory. We need changes in a couple of files, so let's just add comments. When we take a status, we see that there are two modified files:

Figure 10.23: Status of MusicHandler files after changes and before commit

Right in the middle of our work, we're asked to work on a...

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 €18.99/month. Cancel anytime