<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>git on Paran.Blue</title>
    <link>https://bynaki.github.io/tags/git/</link>
    <description>Recent content in git on Paran.Blue</description>
    <image>
      <url>https://bynaki.github.io/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</url>
      <link>https://bynaki.github.io/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</link>
    </image>
    <generator>Hugo -- gohugo.io</generator>
    <lastBuildDate>Sat, 17 Jul 2021 01:47:32 +0900</lastBuildDate><atom:link href="https://bynaki.github.io/tags/git/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Git :: Default Branch를 &#39;master&#39;에서 &#39;main&#39;으로 변경</title>
      <link>https://bynaki.github.io/posts/git.default-branch-main/</link>
      <pubDate>Sat, 17 Jul 2021 01:47:32 +0900</pubDate>
      
      <guid>https://bynaki.github.io/posts/git.default-branch-main/</guid>
      <description>오래된 프로젝트의 기본 branch 이름이 master라면 main으로 변경하자.
github 에서 Settings &amp;gt; Branches &amp;gt; Default branch 에서 master 를 main 으로 변경한 후 로컬에서 다음을 실행한다.
git branch -m master main git fetch origin git branch -u origin/main main git remote set-head origin -a git int 할때 기본 branch를 main으로 하기 위한 config 설정.
$ git config --global init.defaultBranch main </description>
    </item>
    
    <item>
      <title>Git :: Submodule</title>
      <link>https://bynaki.github.io/posts/git.submodule/</link>
      <pubDate>Tue, 13 Jul 2021 22:02:06 +0900</pubDate>
      
      <guid>https://bynaki.github.io/posts/git.submodule/</guid>
      <description>About submodule.
Add Submodule 서브모듈 추가 하기
$ git submodule add https://github.com/chaconinc/DbConnector 기본적으로 서브모듈은 프로젝트 저장소의 이름으로 디렉토리를 만든다. 예제에서는 DbConnector라는 이름으로 만든다. 명령의 마지막에 원하는 이름을 넣어 다른 디렉토리 이름으로 서브모듈을 추가할 수도 있다. 우선 .gitmodules 파일이 만들어졌다. 이 파일은 서브디렉토리와 하위 프로젝트 URL의 매핑 정보를 담은 설정파일이다.
[submodule &amp;quot;DbConnector&amp;quot;] path = DbConnector url = https://github.com/chaconinc/DbConnector Submodule 포함한 프로젝트 Clone 서브모듈을 포함하는 프로젝트를 Clone 하는 예제를 살펴본다. 이런 프로젝트를 Clone 하면 기본적으로 서브모듈 디렉토리는 빈 디렉토리이다.</description>
    </item>
    
  </channel>
</rss>
