master or main branch in git

已查看 8 次
跳至第一个未读帖子

אורי

未读,
2021年6月16日 00:28:222021/6/16
收件人 pywe...@googlegroups.com
Hi,

What is the difference between master branch or main branch as the default branch in my repository? Is there a reason to rename the default branch? I read about git renaming default branches, but I don't understand the reason why to rename the branch. What do you think?

Thanks,

Lior Kaplan

未读,
2021年6月16日 00:45:282021/6/16
收件人 pywe...@googlegroups.com
It's done to remove master-slave terminology from git and other software.

On the technical side - no difference.

Kaplan

--
You received this message because you are subscribed to the Google Groups "PyWeb-IL" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyweb-il+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyweb-il/CABD5YeHmEB-E0SUxLDfOQW9y3O-GxjQVFyiGb1-qe0nkAC_pZA%40mail.gmail.com.

Gabor Szabo

未读,
2021年6月16日 04:31:292021/6/16
收件人 pywe...@googlegroups.com
I have heard the term master-slave in many software, but I have never heard it in regards to git.
Have you?
Gabor


Lior Kaplan

未读,
2021年6月16日 04:35:502021/6/16
收件人 pywe...@googlegroups.com
https://github.com/django/django
Notice the default branch name. 

I don't think git itself changed the default. 

אורי

未读,
2021年6月16日 05:16:372021/6/16
收件人 pywe...@googlegroups.com
Thank you.

I don't think there is a slave in git. Only master.

I think git changed it to main too. I'm not sure. Try to create a new repository with git and see what happens. (it might depend on the version you are using, try using the latest version).

אורי

未读,
2021年6月16日 05:37:462021/6/16
收件人 pywe...@googlegroups.com
Hi,

Git for windows latest version (2.32.0) creates a new repository with branch master.

Shai Berger

未读,
2021年6月16日 05:46:132021/6/16
收件人 pywe...@googlegroups.com
On Wed, 16 Jun 2021 11:35:35 +0300
Lior Kaplan <li...@kaplanopensource.co.il> wrote:

> https://github.com/django/django
> Notice the default branch name.
>
> I don't think git itself changed the default.
>

Git didn't, github did.

Emanuel

未读,
2021年6月16日 06:29:132021/6/16
收件人 pywe...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "PyWeb-IL" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyweb-il+u...@googlegroups.com.
回复全部
回复作者
转发
0 个新帖子