Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can rename/remove master on remote, but this will be an issue if lots of people have based their work on the remote master branch and have pulled that branch in their local repo.<br> That might not be the case here since everyone seems to be working on branch '<code>seotweaks</code>'.</p> <p>In that case you can:<br> git remote --show may not work. (Make a <a href="http://www.kernel.org/pub/software/scm/git/docs/git-remote.html" rel="noreferrer"><code>git remote show</code></a> to check how your remote is declared within your local repo. I will assume '<code>origin</code>')<br> (Regarding GitHub, <a href="https://stackoverflow.com/users/317989/house9">house9</a> comments: "I had to do one additional step, click the '<code>Admin</code>' button on GitHub and set the '<code>Default Branch</code>' to something other than '<code>master</code>', then put it back afterwards")</p> <pre><code>git branch -m master master-old # rename master on local git push origin :master # delete master on remote git push origin master-old # create master-old on remote git checkout -b master seotweaks # create a new local master on top of seotweaks git push origin master # create master on remote </code></pre> <p>But again:</p> <ul> <li>if other users try to pull while master is deleted on remote, their pulls will fail ("no such ref on remote")</li> <li>when master is recreated on remote, a pull will attempt to merge that new master on their local (now old) master: lots of conflicts. They actually need to <code>reset --hard</code> their local master to the remote/master branch they will fetch, and forget about their current master.</li> </ul>
    singulars
    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. 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.
    3. 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