Git version control cookbook leverage version control to transform your development workflow and boost productivity
A series of practical recipes to simplify the Git learning experience and increase your productivity when using Git version control Key Features Explore practical recipes to use Git's most advanced features Learn how Git references its objects and how history is recorded Use reflog and git fsck...
Otros Autores: | |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
Birmingham ; Mumbai :
Packt Publishing
2018.
|
Edición: | Second edition |
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009630686406719 |
Tabla de Contenidos:
- Cover
- Title Page
- Copyright and Credits
- Packt Upsell
- Contributors
- Table of Contents
- Preface
- Chapter 1: Navigating Git
- Introduction
- Git's objects
- Getting ready
- How to do it...
- The commit object
- The tree object
- The blob object
- The branch object
- The tag object
- How it works...
- There's more...
- The three stages
- Getting ready
- How to do it...
- How it works...
- See also
- Viewing the DAG
- Getting ready
- How to do it...
- How it works...
- Extracting fixed issues
- Getting ready
- How to do it...
- How it works...
- There's more...
- Getting a list of the changed files
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Viewing the history with gitk
- Getting ready
- How to do it...
- How it works...
- There's more...
- Finding commits in the history
- Getting ready
- How to do it...
- How it works...
- There's more...
- Searching through the history code
- Getting ready
- How to do it...
- How it works...
- There's more...
- Chapter 2: Configuration
- Introduction
- Configuration targets
- Getting ready
- How to do it...
- How it works...
- There's more...
- Querying the existing configuration
- Getting ready
- How to do it...
- How it works...
- There's more...
- Templates
- Getting ready
- How to do it...
- How it works...
- A .git directory template
- Getting ready
- How to do it...
- How it works...
- See also
- A few configuration examples
- Getting ready
- How to do it...
- Rebase and merge setup
- Expiry of objects
- Autocorrect
- How it works...
- There's more...
- Git aliases
- Getting ready
- How to do it...
- How it works...
- There's more...
- The refspec exemplified
- Getting ready
- How to do it...
- How it works...
- Chapter 3: Branching, Merging, and Options
- Introduction.
- Managing your local branches
- Getting ready
- How to do it...
- How it works...
- There's more...
- Branches with remotes
- Getting ready
- How to do it...
- There's more...
- Forcing a merge commit
- Getting ready
- How to do it...
- There's more...
- Using git reuse recorded resolution (rerere) to merge Git conflicts
- How to do it...
- There's more...
- Compute the difference between branches
- Getting ready
- How to do it...
- Orphan branches
- Getting ready
- How to do it...
- There's more...
- Chapter 4: Rebasing Regularly and Interactively, and Other Use Cases
- Introduction
- Rebasing commits to another branch
- Getting ready
- How to do it...
- How it works...
- Continuing a rebase with merge conflicts
- How to do it...
- How it works...
- There's more...
- Rebasing selected commits interactively
- Getting ready
- How to do it...
- There's more...
- Squashing commits using an interactive rebase
- Getting ready
- How to do it...
- There's more...
- Changing the author of commits using a rebase
- Getting ready
- How to do it...
- How it works...
- Autosquashing commits
- Getting ready
- How to do it...
- There's more...
- Chapter 5: Storing Additional Information in Your Repository
- Introduction
- Adding your first Git note
- Getting ready
- How to do it...
- There's more...
- Separating notes by category
- Getting ready
- How to do it...
- How it works...
- Retrieving notes from the remote repository
- Getting ready
- How to do it...
- How it works...
- Pushing Git notes to a remote repository
- How to do it...
- There's more...
- Tagging commits in the repository
- Getting ready
- How to do it...
- There's more...
- Chapter 6: Extracting Data from the Repository
- Introduction
- Extracting the top contributor
- Getting ready
- How to do it...
- There's more.
- Finding bottlenecks in the source tree
- Getting ready
- How to do it...
- There's more...
- Grepping the commit messages
- Getting ready
- How to do it...
- The contents of the releases
- How to do it...
- How it works...
- Finding what has been achieved in the repository in the last period
- How to do it...
- How it works...
- There's more...
- Chapter 7: Enhancing Your Daily Work with Git Hooks, Aliases, and Scripts
- Introduction
- Using a branch description in a commit message
- Getting ready
- How to do it...
- Creating a dynamic commit message template
- Getting ready
- How to do it...
- There's more...
- Using external information in a commit message
- Getting ready
- How to do it...
- Preventing the push of specific commits
- Getting ready
- How to do it...
- There's more...
- Configuring and using Git aliases
- How to do it...
- How it works...
- Configuring and using Git scripts
- How to do it...
- Setting up and using a commit template
- Getting ready
- How to do it...
- Chapter 8: Recovering from Mistakes
- Introduction
- Undo - Remove a commit completely
- Getting ready
- How to do it...
- How it works...
- Undo - Remove a commit and retain changes to files
- Getting ready
- How to do it...
- How it works...
- Undo - Remove a commit and retain changes in the staging area
- Getting ready
- How to do it...
- How it works...
- Undo - Working with a dirty area
- Getting ready
- How to do it...
- How it works...
- Redo - Recreate the latest commit with new changes
- Getting ready
- How to do it...
- How it works...
- There's more...
- Revert - Undo the changes introduced by a commit
- Getting ready
- How to do it...
- How it works...
- There's more...
- Reverting a merge
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also.
- Viewing past Git actions with git reflog
- Getting ready
- How to do it...
- How it works...
- Finding lost changes with git fsck
- Getting ready
- How to do it...
- How it works...
- Chapter 9: Repository Maintenance
- Introduction
- Pruning remote branches
- Getting ready
- How to do it...
- How it works...
- There's more...
- Running garbage collection manually
- Getting ready
- How to do it...
- How it works...
- Turning off automatic garbage collection
- Getting ready
- How to do it...
- Splitting a repository
- Getting ready
- How to do it...
- How it works...
- There's more...
- Rewriting history - changing a single file
- Getting ready
- How to do it...
- How it works...
- Creating a backup of your repositories as mirror repositories
- Getting ready
- How to do it...
- How it works...
- There's more...
- A quick "how-to" submodule
- Getting ready
- How to do it...
- There's more...
- Subtree merging
- Getting ready
- How to do it...
- How it works...
- See also
- Submodule versus subtree merging
- Chapter 10: Patching and Offline Sharing
- Introduction
- Creating patches
- Getting ready
- How to do it...
- How it works...
- There's more...
- Creating patches from branches
- Getting ready
- How to do it...
- How it works...
- There's more...
- Applying patches
- Getting ready
- How to do it...
- How it works...
- There's more...
- Sending patches
- Getting ready
- How to do it...
- How it works...
- There's more...
- Creating Git bundles
- Getting ready
- How to do it...
- How it works...
- Using a Git bundle
- Getting ready
- How to do it...
- There's more...
- Creating archives from a tree
- Getting ready
- How to do it...
- There's more...
- Chapter 11: Tips and Tricks
- Introduction
- Using git stash
- Getting ready
- How to do it...
- How it works.
- There's more...
- Saving and applying stashes
- Getting ready
- How to do it...
- There's more...
- Debugging with git bisect
- Getting ready
- How to do it...
- There's more...
- Using the blame command
- Getting ready
- How to do it...
- There's more...
- Coloring the UI in the prompt
- Getting ready
- How to do it...
- There's more...
- Autocompletion
- Getting ready
- Linux
- Mac
- Windows
- How to do it...
- How it works...
- There's more...
- Bash prompt with status information
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- More aliases
- Getting ready
- How to do it...
- Interactive add
- Getting ready
- How to do it...
- There's more...
- Interactive add with Git gui
- Getting ready
- How to do it...
- Ignoring files
- Getting ready
- How to do it...
- There's more...
- See also
- Showing and cleaning ignored files
- Getting ready
- How to do it...
- There's more...
- Chapter 12: Git Providers, Integrations, and Clients
- Introduction
- Setting up an organization at GitHub
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Creating a repository at GitHub
- Getting ready
- How to do it...
- How it works...
- There's more...
- Adding templates for issues and pull requests
- Getting ready
- How to do it...
- How it works...
- Creating a GitHub API key
- Getting ready
- How to do it...
- How it works...
- See also
- Using GitHub to authenticate at Jenkins
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Triggering Jenkins builds
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Using Jenkinsfiles
- Getting ready
- How to do it...
- How it works...
- There's more...
- See also
- Other Books You May Enjoy
- Index.