git TutorialIntroduction Installing Git Understanding Git architecture Initializing the new Git respository Cloning new Git repository .git directory in Git repository Viewing Git configuration First time Git configuration Using SSH keys with Git Checking Git status Adding files into staging area in Git Committing changes to the local repository Ignoring files using .gitignore Viewing the history of commits Viewing the file contents in working directory, staging area and repository Viewing difference between files Viewing the history of files Git revert Git Reset git reflog Creating and switching to new branches in Git Viewing existing branches Merging branches Resolving conflicts Rebase Deleting branches Renaming the branch in Git Push Pull Stashing the changes in Git Tags in Git Patches in Git Creating new repository on GitHub Pushing local repository to remote repository like GitHub IntelliJ IDEA
Patches in gitIn this topic, we will see how to create a patch file in Git and apply it to another repository. Below image shows how to create a patch file in Git. In below example, we have switched to new branch – b5 , added one commit and then created a patch file for master branch. Applying a patch on master branch Now let us see how to apply a patch to master branch. First switch to master branch and execute commands as displayed in below image.
Web development and Automation testing