Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This is only my second post on stackoverflow, I hope it is helpful.</p> <p><strong>master branches</strong></p> <p><em>inside repo switch to master branch</em></p> <pre><code>git checkout master </code></pre> <p><em>now create a copy of the master branch sitting at tag 1.0</em></p> <pre><code>git checkout 1.0 git checkout -b master_1.0 </code></pre> <p><em>switch back to master branch</em></p> <pre><code>git checkout master </code></pre> <p><em>now create a copy of the master branch sitting at tag 1.1</em></p> <pre><code>git checkout 1.1 git checkout -b master_1.1 </code></pre> <p><strong>dev branches</strong></p> <p><em>switch back to master branch</em></p> <pre><code>git checkout master </code></pre> <p><em>now create a dev branch from master sitting at tag 1.0</em></p> <pre><code>git checkout 1.0 git checkout -b dev_1.0 </code></pre> <p><em>switch back to master branch</em></p> <pre><code>git checkout master </code></pre> <p><em>now create a dev branch from master sitting at tag 1.1</em></p> <pre><code>git checkout 1.1 git checkout -b dev_1.1 </code></pre> <p><em>if ok push changes to the remote</em></p> <pre><code>git push </code></pre> <p>At this point you would have 6 branches total. Your original master and dev plus the new copies. Development can take place on the newly created branches without impacting master. It may not be conventional to have a tag number in the branch name but it will accomplish the task of communicating quickly the branches origin or purpose. Further you can remove, merge, or re-create the branches easily.</p> <p><strong>To remove branches</strong></p> <p>remote - (don't forget the ":")</p> <pre><code>git push origin :BranchName </code></pre> <p>local - cannot be on the branch you are trying to delete, -D for un-merged branch</p> <pre><code>git branch -D BranchName </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload