Paul C. Anagnostopoulos via llvm-dev
2020-Dec-03 01:31 UTC
[llvm-dev] [cfe-dev] Renaming The Default Branch
Could you include instructions for us not-so-git-savvy folks that explain what we have to do locally? I know I have to rename my master branch. Do I have to do anything else?
Hubert Tong via llvm-dev
2020-Dec-03 02:01 UTC
[llvm-dev] [cfe-dev] Renaming The Default Branch
On Wed, Dec 2, 2020 at 8:31 PM Paul C. Anagnostopoulos via llvm-dev < llvm-dev at lists.llvm.org> wrote:> Could you include instructions for us not-so-git-savvy folks that explain > what we have to do locally? I know I have to rename my master branch.Technically, you don't have to rename your local branch; just run git --set-upstream-to=origin/main master> Do I have to do anything else? > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20201202/08852102/attachment.html>
Mike Edwards via llvm-dev
2020-Dec-03 17:51 UTC
[llvm-dev] [cfe-dev] Renaming The Default Branch
On Wed, Dec 2, 2020 at 5:31 PM Paul C. Anagnostopoulos via llvm-dev < llvm-dev at lists.llvm.org> wrote:> Could you include instructions for us not-so-git-savvy folks that explain > what we have to do locally? I know I have to rename my master branch. Do I > have to do anything else? > >Sorry Paul, my apologies for not responding to you earlier. I know there are many different ways in git to accomplish the same goal. This is the method I plan on using to update my local working copy of the repository: In my local llvm-project directory: $ git fetch origin $ git checkout origin/main -b main When you are ready to remove your local 'master' branch run: $ git branch -d master If someone else reading this would please peer review this, I would appreciate the assistance. If I can get a LGTM from someone I will add these steps to the webpage as well. Thanks, Mike> _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20201203/b8418dc0/attachment.html>