php - Use git for two branch -


Looks like I'm going to use these three files in the master branch

Master:

  index.php & lt; B & gt; Hello & lt; / B & gt;  

NewBranch:

  Index.php & lt; B & gt; Hello & lt; / B & gt; Test.php img.jpeg  

And now I will edit the master index .php file, and I will add two rows to the master branch

Master: < / Strong>

  index.php & lt; B & gt; Hello & lt; / B & gt; & Lt; A & gt; Trial & lt; / A & gt; & Lt; P & gt; Good & lt; / P & gt;  

And I'll change some code in NewBeck

Newbank:

  index.php & lt; P & gt; Hello & lt; / P & gt; & Lt; Div & gt; This new branch line is & lt; / Div & gt;  

I want to update Newbank so that I can have my own edit lines on my new branch and also update the lines on the master branch

Newbank: (As should be as given below)

  index.php  

How can I get it? I pulled and received Netbeans, but did not work. I do not even want to use git submodule (as I do not have a separate folder)

    < Li> You should be "committed" in both the branches
  1. Then you can rebab to your newbank master ( git rebase master NewBranch )
  2. Now you can make changes to the new branch, and the master will be the only change in it but the master only.

Please refer to more details on the Rebbe.


Comments

Popular posts from this blog

c# - SignalR: "Protocol error: Unknown transport." when navigating to hub -

c# - WPF Expander overlay used in ItemsControl -

class - Kivy: how to instantiate a dynamic classes in python -