1min Quick Tip - How to use Git Patch in PhpStorm 2019 tutorial

Опубликовано: 21 Октябрь 2019
на канале: StudyStream+
9,399
27

Today we are going to look at the Git Patch with PhpStorm. Creating a patch in Git, takes all your changes from your working directory and creates a patch file. You can take this patch file, send it to a colleague and they can apply it to their working directory. You might think: Why would we ever want to do this?.

In my experience, when pair programming, there have been instances where we have run out time. So we were working on my machine and I needed to jump onto something else or jump into a meeting. My colleague, still had time to work on the feature/bug, but all the work we had completed in the last hour, was on my machine. We created a path file and I just sent it to him. My colleague could then apply the patch to his machine and continue working.

So let’s try doing this here. Let’s remove the index() method. By checking our version control panel you can see we have changes in our working directory. Right click on your changes, click on create patch to clipboard. If we wanted to create a file, select the other option.

So we can demonstrate this, I am going to revert my changes in my working directory.

Press Ctrl + Shift + A or Cmd + Shift + A to bring up the actions menu. Search for “Apply Patch”. Hit “Enter”. Open up your working directory again. You will see you have a new changelist in here. This is our patch being applied. If we tried to commit, you can see we have our changes.

Reval Govender
LinkedIn:   / reval-govender-0ba14860  
Twitter:   / revalgovender  

Laravel Tutorials:
   • Laravel PHP Tutorials  

2 - 3 min Developer Quick Tips Series:
   • 2-3min Quick Tips - PhpStorm | Git  

PHP Developer Tutorials:
   • PHP Tutorials  

A Journey To TDD the tutorial series:
   • Testing - A Journey To TDD  

☆☆ FOLLOW ME ONLINE ☆☆
LinkedIn:   / reval-gove.  .
Twitter:   / revalgovender  

☆☆ SPONSORSHIP ☆☆
Does your company want to sponsor a video? Contact me by twitter or LinkedIn


На этой странице сайта вы можете посмотреть видео онлайн 1min Quick Tip - How to use Git Patch in PhpStorm 2019 tutorial длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь StudyStream+ 21 Октябрь 2019, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 9,399 раз и оно понравилось 27 зрителям. Приятного просмотра!