<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>git 보관 - 하우인포-IT·테크</title>
	<atom:link href="https://howinfo.kr/tag/git/feed/" rel="self" type="application/rss+xml" />
	<link>https://howinfo.kr/tag/git/</link>
	<description>IT·AI 자동화 &#38; 인프라 전문 블로그 (하우인포)</description>
	<lastBuildDate>Sun, 22 Feb 2026 10:29:28 +0000</lastBuildDate>
	<language>ko-KR</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://howinfo.kr/wp-content/uploads/2026/02/cropped-ChatGPT-Image-2026년-2월-12일-오후-05_39_40-32x32.png</url>
	<title>git 보관 - 하우인포-IT·테크</title>
	<link>https://howinfo.kr/tag/git/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>GitHub 연결까지 완전 정복 (토큰 로그인 포함)</title>
		<link>https://howinfo.kr/github-%ec%97%b0%ea%b2%b0%ea%b9%8c%ec%a7%80-%ec%99%84%ec%a0%84-%ec%a0%95%eb%b3%b5-%ed%86%a0%ed%81%b0-%eb%a1%9c%ea%b7%b8%ec%9d%b8-%ed%8f%ac%ed%95%a8/</link>
					<comments>https://howinfo.kr/github-%ec%97%b0%ea%b2%b0%ea%b9%8c%ec%a7%80-%ec%99%84%ec%a0%84-%ec%a0%95%eb%b3%b5-%ed%86%a0%ed%81%b0-%eb%a1%9c%ea%b7%b8%ec%9d%b8-%ed%8f%ac%ed%95%a8/#respond</comments>
		
		<dc:creator><![CDATA[hong]]></dc:creator>
		<pubDate>Sun, 22 Feb 2026 09:53:41 +0000</pubDate>
				<category><![CDATA[서버·인프라]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[pull]]></category>
		<category><![CDATA[push]]></category>
		<category><![CDATA[버전관리]]></category>
		<category><![CDATA[브랜치]]></category>
		<category><![CDATA[초보개발자]]></category>
		<category><![CDATA[토큰로그인]]></category>
		<category><![CDATA[형상관리]]></category>
		<guid isPermaLink="false">https://howinfo.kr/?p=1966</guid>

					<description><![CDATA[<p>Git 초보가 제일 막히는 구간을 하나씩 풀어봅니다 Git을 설치하고 로컬에서 git init까지는 했는데… 👉 이 구간에서 70%가 멈춥니다.👉 오늘 여기서...</p>
<p>게시물 <a href="https://howinfo.kr/github-%ec%97%b0%ea%b2%b0%ea%b9%8c%ec%a7%80-%ec%99%84%ec%a0%84-%ec%a0%95%eb%b3%b5-%ed%86%a0%ed%81%b0-%eb%a1%9c%ea%b7%b8%ec%9d%b8-%ed%8f%ac%ed%95%a8/">GitHub 연결까지 완전 정복 (토큰 로그인 포함)</a>이 <a href="https://howinfo.kr">하우인포-IT·테크</a>에 처음 등장했습니다.</p>
]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading">Git 초보가 제일 막히는 구간을 하나씩 풀어봅니다</h3>



<p>Git을 설치하고 로컬에서 <code>git init</code>까지는 했는데…</p>



<ul class="wp-block-list">
<li>❓ GitHub는 왜 또 필요하지?</li>



<li>❓ 로그인은 어떻게 하지?</li>



<li>❓ 비밀번호가 안 되는데?</li>



<li>❓ 토큰은 뭐야?</li>
</ul>



<p>👉 이 구간에서 70%가 멈춥니다.<br>👉 오늘 여기서 끝냅니다.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h1 class="wp-block-heading">1️⃣ GitHub는 뭐고 왜 연결하나요?</h1>



<p>정리하면 이렇습니다.</p>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>구분</th><th>역할</th></tr></thead><tbody><tr><td>Git</td><td>내 PC에서 버전관리</td></tr><tr><td>GitHub</td><td>인터넷에 저장(백업 + 협업 + 다른 PC 동기화)</td></tr></tbody></table></figure>



<p>즉,</p>



<p>👉 Git만 쓰면 “내 컴퓨터 안에서만” 관리<br>👉 GitHub까지 연결하면 “클라우드 백업 + 협업 가능”</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h1 class="wp-block-heading">2️⃣ GitHub 가입 (처음이면)</h1>



<ol class="wp-block-list">
<li><a href="https://github.com">https://github.com</a> 접속</li>



<li>Sign up 클릭</li>



<li>이메일 인증</li>



<li>사용자명 생성</li>
</ol>



<p>✔ 무료로 충분합니다.</p>



<figure class="wp-block-image size-large is-resized"><img fetchpriority="high" decoding="async" width="1024" height="706" src="https://howinfo.kr/wp-content/uploads/2026/02/github01-1024x706.png" alt="" class="wp-image-1969" style="aspect-ratio:1.4504640621627456;width:469px;height:auto" srcset="https://howinfo.kr/wp-content/uploads/2026/02/github01-1024x706.png 1024w, https://howinfo.kr/wp-content/uploads/2026/02/github01-300x207.png 300w, https://howinfo.kr/wp-content/uploads/2026/02/github01-768x529.png 768w, https://howinfo.kr/wp-content/uploads/2026/02/github01.png 1088w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large is-resized"><img decoding="async" width="1024" height="725" src="https://howinfo.kr/wp-content/uploads/2026/02/github02-1024x725.png" alt="" class="wp-image-1972" style="aspect-ratio:1.412432347222952;width:468px;height:auto" srcset="https://howinfo.kr/wp-content/uploads/2026/02/github02-1024x725.png 1024w, https://howinfo.kr/wp-content/uploads/2026/02/github02-300x212.png 300w, https://howinfo.kr/wp-content/uploads/2026/02/github02-768x544.png 768w, https://howinfo.kr/wp-content/uploads/2026/02/github02.png 1315w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large is-resized"><img decoding="async" width="1024" height="604" src="https://howinfo.kr/wp-content/uploads/2026/02/github04-1024x604.png" alt="" class="wp-image-1973" style="aspect-ratio:1.6954177047525938;width:506px;height:auto" srcset="https://howinfo.kr/wp-content/uploads/2026/02/github04-1024x604.png 1024w, https://howinfo.kr/wp-content/uploads/2026/02/github04-300x177.png 300w, https://howinfo.kr/wp-content/uploads/2026/02/github04-768x453.png 768w, https://howinfo.kr/wp-content/uploads/2026/02/github04.png 1309w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h1 class="wp-block-heading">3️⃣ GitHub에서 저장소(Repository) 만들기</h1>



<p>로그인 후</p>



<ol class="wp-block-list">
<li>오른쪽 위 ➕ 버튼 클릭</li>



<li><strong>New repository</strong></li>



<li>Repository name: 예) <code>my-project</code></li>



<li>Public / Private 선택</li>



<li>Create repository</li>
</ol>



<p>⚠️ 여기서 <strong>README 생성 체크하지 마세요 (초보는 비워두는 게 안전)</strong></p>



<figure class="wp-block-image size-large is-resized"><img loading="lazy" decoding="async" width="1024" height="714" src="https://howinfo.kr/wp-content/uploads/2026/02/github05-1024x714.png" alt="" class="wp-image-1974" style="aspect-ratio:1.4342119304236474;width:615px;height:auto" srcset="https://howinfo.kr/wp-content/uploads/2026/02/github05-1024x714.png 1024w, https://howinfo.kr/wp-content/uploads/2026/02/github05-300x209.png 300w, https://howinfo.kr/wp-content/uploads/2026/02/github05-768x536.png 768w, https://howinfo.kr/wp-content/uploads/2026/02/github05.png 1085w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large is-resized"><img loading="lazy" decoding="async" width="1024" height="742" src="https://howinfo.kr/wp-content/uploads/2026/02/github06-1024x742.png" alt="" class="wp-image-1975" style="aspect-ratio:1.3800893361400626;width:614px;height:auto" srcset="https://howinfo.kr/wp-content/uploads/2026/02/github06-1024x742.png 1024w, https://howinfo.kr/wp-content/uploads/2026/02/github06-300x217.png 300w, https://howinfo.kr/wp-content/uploads/2026/02/github06-768x556.png 768w, https://howinfo.kr/wp-content/uploads/2026/02/github06.png 1106w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h1 class="wp-block-heading">4️⃣ 이제 로컬 Git과 연결합니다</h1>



<p>이미 PC에서 이런 상태라고 가정합니다:</p>



<pre class="wp-block-preformatted">mkdir my-project<br>cd my-project<br>git init</pre>



<p>GitHub에서 repo 생성 후 보이는 주소를 복사합니다.</p>



<p>예:</p>



<pre class="wp-block-preformatted">https://github.com/yourname/my-project.git</pre>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">4-1) 원격 저장소 연결</h2>



<figure class="wp-block-image size-large is-resized"><img loading="lazy" decoding="async" width="1024" height="747" src="https://howinfo.kr/wp-content/uploads/2026/02/github07-1024x747.png" alt="" class="wp-image-1976" style="aspect-ratio:1.3708690330477356;width:603px;height:auto" srcset="https://howinfo.kr/wp-content/uploads/2026/02/github07-1024x747.png 1024w, https://howinfo.kr/wp-content/uploads/2026/02/github07-300x219.png 300w, https://howinfo.kr/wp-content/uploads/2026/02/github07-768x560.png 768w, https://howinfo.kr/wp-content/uploads/2026/02/github07.png 1090w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<pre class="wp-block-preformatted">git remote add origin https://github.com/yourname/my-project.git</pre>



<p>확인:</p>



<pre class="wp-block-preformatted">git remote -v</pre>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h1 class="wp-block-heading">5️⃣ 이제 push 해봅니다 (여기서 막힘 발생)</h1>



<pre class="wp-block-preformatted">git branch -M main<br>git push -u origin main</pre>



<p>👉 여기서 로그인 창이 뜨거나<br>👉 비밀번호를 요구합니다.</p>



<p>❗ 여기서 비밀번호 입력하면 <strong>실패합니다</strong></p>



<p>GitHub는 더 이상 비밀번호 로그인 안 됩니다.<br>👉 <strong>Personal Access Token(토큰)</strong> 사용해야 합니다.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h1 class="wp-block-heading">6️⃣ 토큰 생성 (초보용 단계별)</h1>



<ol class="wp-block-list">
<li>GitHub 오른쪽 위 프로필 클릭</li>



<li>Settings</li>



<li>왼쪽 아래 → Developer settings</li>



<li>Personal access tokens</li>



<li>Tokens (classic) 클릭</li>



<li>Generate new token (classic)</li>
</ol>



<h3 class="wp-block-heading">설정 방법</h3>



<ul class="wp-block-list">
<li>Note: git-login</li>



<li>Expiration: 90 days (초보는 이렇게)</li>



<li>Scopes:
<ul class="wp-block-list">
<li>✅ repo (체크)</li>
</ul>
</li>
</ul>



<p>Generate token 클릭</p>



<p>⚠️ 생성되면 토큰 문자열이 보입니다.<br>👉 복사해서 안전한 곳에 저장<br>👉 다시는 안 보여줍니다</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h1 class="wp-block-heading">7️⃣ 토큰으로 로그인</h1>



<p>다시 push 실행:</p>



<pre class="wp-block-preformatted">git push -u origin main</pre>



<p>아이디 입력 → GitHub 아이디<br>비밀번호 입력 → <strong>토큰 붙여넣기</strong></p>



<p>👉 성공하면 업로드 완료 🎉</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h1 class="wp-block-heading">8️⃣ 이제부터는 이렇게 사용합니다</h1>



<h2 class="wp-block-heading">작업하고 커밋</h2>



<pre class="wp-block-preformatted">git add .<br>git commit -m "feat: update feature"</pre>



<h2 class="wp-block-heading">GitHub에 업로드</h2>



<pre class="wp-block-preformatted">git push</pre>



<h2 class="wp-block-heading">다른 PC에서 가져오기</h2>



<pre class="wp-block-preformatted">git pull</pre>



<figure class="wp-block-image size-large is-resized"><img loading="lazy" decoding="async" width="771" height="1024" src="https://howinfo.kr/wp-content/uploads/2026/02/github08-771x1024.png" alt="" class="wp-image-1978" style="aspect-ratio:0.7529411764705882;width:615px;height:auto" srcset="https://howinfo.kr/wp-content/uploads/2026/02/github08-771x1024.png 771w, https://howinfo.kr/wp-content/uploads/2026/02/github08-226x300.png 226w, https://howinfo.kr/wp-content/uploads/2026/02/github08-768x1019.png 768w, https://howinfo.kr/wp-content/uploads/2026/02/github08.png 773w" sizes="auto, (max-width: 771px) 100vw, 771px" /></figure>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h1 class="wp-block-heading">9️⃣ 자주 발생하는 초보 오류 해결</h1>



<h2 class="wp-block-heading">❌ authentication failed</h2>



<p>→ 토큰 잘못 입력<br>→ 토큰 만료<br>→ repo 권한 없음</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">❌ failed to push some refs</h2>



<p>→ 먼저 pull 해야 하는 경우</p>



<pre class="wp-block-preformatted">git pull origin main --rebase<br>git push</pre>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h1 class="wp-block-heading">🔟 브랜치까지 맛보기 (안전 작업)</h1>



<p>기능 추가할 때는 이렇게:</p>



<pre class="wp-block-preformatted">git checkout -b feature/login</pre>



<p>작업 후</p>



<pre class="wp-block-preformatted">git add .<br>git commit -m "feat: login"<br>git push -u origin feature/login</pre>



<p>GitHub에서 PR 생성 → 병합</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h1 class="wp-block-heading">💡 제가 초보 때 깨달은 핵심</h1>



<p>GitHub 연결은<br>👉 명령어보다 “토큰 이해”가 핵심</p>



<ul class="wp-block-list">
<li>Git = 로컬 기록</li>



<li>GitHub = 원격 저장</li>



<li>토큰 = 로그인 비밀번호 대신</li>
</ul>



<p>이 세 가지만 이해하면 더 이상 두렵지 않습니다.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h1 class="wp-block-heading">📌 블로그용 정리 문장</h1>



<p>Git 초보가 제일 막히는 구간은 “로그인”입니다.<br>비밀번호가 아니라 <strong>토큰으로 인증한다</strong>는 개념만 이해하면<br>GitHub 연결은 5분이면 끝납니다.</p>



<p></p>
<p>게시물 <a href="https://howinfo.kr/github-%ec%97%b0%ea%b2%b0%ea%b9%8c%ec%a7%80-%ec%99%84%ec%a0%84-%ec%a0%95%eb%b3%b5-%ed%86%a0%ed%81%b0-%eb%a1%9c%ea%b7%b8%ec%9d%b8-%ed%8f%ac%ed%95%a8/">GitHub 연결까지 완전 정복 (토큰 로그인 포함)</a>이 <a href="https://howinfo.kr">하우인포-IT·테크</a>에 처음 등장했습니다.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://howinfo.kr/github-%ec%97%b0%ea%b2%b0%ea%b9%8c%ec%a7%80-%ec%99%84%ec%a0%84-%ec%a0%95%eb%b3%b5-%ed%86%a0%ed%81%b0-%eb%a1%9c%ea%b7%b8%ec%9d%b8-%ed%8f%ac%ed%95%a8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Git 완전 초보 가이드: 다운로드부터 “첫 커밋”까지 (실전 경험 버전)</title>
		<link>https://howinfo.kr/git-%ec%99%84%ec%a0%84-%ec%b4%88%eb%b3%b4-%ea%b0%80%ec%9d%b4%eb%93%9c-%eb%8b%a4%ec%9a%b4%eb%a1%9c%eb%93%9c%eb%b6%80%ed%84%b0-%ec%b2%ab-%ec%bb%a4%eb%b0%8b%ea%b9%8c%ec%a7%80/</link>
					<comments>https://howinfo.kr/git-%ec%99%84%ec%a0%84-%ec%b4%88%eb%b3%b4-%ea%b0%80%ec%9d%b4%eb%93%9c-%eb%8b%a4%ec%9a%b4%eb%a1%9c%eb%93%9c%eb%b6%80%ed%84%b0-%ec%b2%ab-%ec%bb%a4%eb%b0%8b%ea%b9%8c%ec%a7%80/#respond</comments>
		
		<dc:creator><![CDATA[hong]]></dc:creator>
		<pubDate>Sun, 22 Feb 2026 09:17:23 +0000</pubDate>
				<category><![CDATA[서버·인프라]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[merge]]></category>
		<category><![CDATA[pull]]></category>
		<category><![CDATA[push]]></category>
		<category><![CDATA[개발]]></category>
		<category><![CDATA[개발저장하기]]></category>
		<category><![CDATA[개발환경설정]]></category>
		<category><![CDATA[버전관리]]></category>
		<category><![CDATA[브랜치]]></category>
		<category><![CDATA[소스관리]]></category>
		<category><![CDATA[윈도우즈]]></category>
		<category><![CDATA[초보개발자]]></category>
		<category><![CDATA[커밋]]></category>
		<category><![CDATA[협업]]></category>
		<category><![CDATA[형상관리]]></category>
		<guid isPermaLink="false">https://howinfo.kr/?p=1955</guid>

					<description><![CDATA[<p>Git이 뭐예요? (초보가 제일 헷갈리는 포인트) 즉, 1) 다운로드는 “공식”에서만 (중요) 초보일수록 검색해서 아무 사이트에서 받다가 광고/번들 설치로 꼬이는 경우가...</p>
<p>게시물 <a href="https://howinfo.kr/git-%ec%99%84%ec%a0%84-%ec%b4%88%eb%b3%b4-%ea%b0%80%ec%9d%b4%eb%93%9c-%eb%8b%a4%ec%9a%b4%eb%a1%9c%eb%93%9c%eb%b6%80%ed%84%b0-%ec%b2%ab-%ec%bb%a4%eb%b0%8b%ea%b9%8c%ec%a7%80/">Git 완전 초보 가이드: 다운로드부터 “첫 커밋”까지 (실전 경험 버전)</a>이 <a href="https://howinfo.kr">하우인포-IT·테크</a>에 처음 등장했습니다.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Git이 뭐예요? (초보가 제일 헷갈리는 포인트)</h2>



<figure class="wp-block-image size-large is-resized"><img loading="lazy" decoding="async" width="1024" height="702" src="https://howinfo.kr/wp-content/uploads/2026/02/git06-1024x702.png" alt="" class="wp-image-1956" style="aspect-ratio:1.4587290389102947;width:562px;height:auto" srcset="https://howinfo.kr/wp-content/uploads/2026/02/git06-1024x702.png 1024w, https://howinfo.kr/wp-content/uploads/2026/02/git06-300x206.png 300w, https://howinfo.kr/wp-content/uploads/2026/02/git06-768x526.png 768w, https://howinfo.kr/wp-content/uploads/2026/02/git06.png 1081w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<ul class="wp-block-list">
<li>Git = <strong>내 PC에서</strong> “코드 변경 이력”을 저장하는 도구</li>



<li>GitHub/GitLab = <strong>인터넷(원격)</strong> 에 저장해두는 “저장소 서비스”</li>
</ul>



<p>즉,</p>



<ul class="wp-block-list">
<li><strong>Git만 설치해도</strong> 내 컴퓨터에서 버전관리 가능</li>



<li><strong>GitHub까지 연결하면</strong> 백업/협업/다른 PC 동기화까지 가능</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h1 class="wp-block-heading">1) 다운로드는 “공식”에서만 (중요)</h1>



<p>초보일수록 검색해서 아무 사이트에서 받다가 광고/번들 설치로 꼬이는 경우가 있어요.<br>아래 2곳이 대표적인 <strong>공식 루트</strong>입니다.</p>



<ul class="wp-block-list">
<li>Git 공식 설치 페이지(운영체제 선택): Git SCM Install</li>



<li>Windows는 Git for Windows(공식 안내/다운로드 링크 제공): Git SCM Windows Install</li>
</ul>



<p>추가로, Windows 요구사항(지원 OS)도 공식에 명시돼 있어요.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="590" height="457" src="https://howinfo.kr/wp-content/uploads/2026/02/git08.png" alt="" class="wp-image-1957" srcset="https://howinfo.kr/wp-content/uploads/2026/02/git08.png 590w, https://howinfo.kr/wp-content/uploads/2026/02/git08-300x232.png 300w" sizes="auto, (max-width: 590px) 100vw, 590px" /></figure>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h1 class="wp-block-heading">2) Windows 설치 (가장 많이 쓰는 케이스)</h1>



<h2 class="wp-block-heading">2-1) 다운로드</h2>



<ol class="wp-block-list">
<li>Git 공식 Windows 설치 페이지로 이동</li>



<li>“latest x64” 설치 파일을 다운로드 (대부분 PC는 x64)</li>
</ol>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p>참고: Git for Windows는 <strong>Windows 8.1 이상</strong>이 권장/지원 범위로 안내됩니다.</p>
</blockquote>



<h2 class="wp-block-heading">2-2) 설치하면서 뭐 선택해야 해요? (초보 추천 “안전 세팅”)</h2>



<p>설치 옵션이 많아서 처음엔 무조건 헷갈립니다.<br>저는 처음에 아무거나 눌렀다가 <strong>줄바꿈 문제</strong>(CRLF/LF)로 고생했어요. 아래가 가장 무난했습니다.</p>



<p>설치 화면에서 핵심만 체크:</p>



<h3 class="wp-block-heading">(1) PATH 옵션</h3>



<ul class="wp-block-list">
<li>✅ <strong>Git from the command line and also from 3rd-party software</strong><br>→ CMD/PowerShell/VS Code에서 git 명령이 바로 먹게 됨</li>
</ul>



<h3 class="wp-block-heading">(2) Line endings(줄바꿈)</h3>



<ul class="wp-block-list">
<li>✅ <strong>Checkout Windows-style, commit Unix-style</strong><br>→ 윈도우에서 줄바꿈 지뢰 줄이기</li>
</ul>



<h3 class="wp-block-heading">(3) 기본 터미널</h3>



<ul class="wp-block-list">
<li>“Git Bash”는 기본 포함. 초보는 <strong>Git Bash</strong>로 시작하는 게 편합니다.</li>
</ul>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p>여기까지 하고 “Next → Install” 쭉 가면 됩니다.<br>(나머지는 기본값으로도 실무에 문제 거의 없었어요)</p>
</blockquote>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="591" height="459" src="https://howinfo.kr/wp-content/uploads/2026/02/git09.png" alt="" class="wp-image-1958" srcset="https://howinfo.kr/wp-content/uploads/2026/02/git09.png 591w, https://howinfo.kr/wp-content/uploads/2026/02/git09-300x233.png 300w" sizes="auto, (max-width: 591px) 100vw, 591px" /></figure>



<h2 class="wp-block-heading">2-3) 설치 확인(이게 제일 중요)</h2>



<p>설치 끝나면 <strong>Git Bash</strong> 열고 아래 입력:</p>



<pre class="wp-block-preformatted">git --version</pre>



<p><code>git version 2.xx.x</code> 이런 식으로 나오면 설치 성공입니다.<br>(안 나오면 PATH 옵션이 잘못된 경우가 많아요)</p>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="881" height="597" src="https://howinfo.kr/wp-content/uploads/2026/02/git11.png" alt="" class="wp-image-1959" style="aspect-ratio:1.4757473441488924;width:669px;height:auto" srcset="https://howinfo.kr/wp-content/uploads/2026/02/git11.png 881w, https://howinfo.kr/wp-content/uploads/2026/02/git11-300x203.png 300w, https://howinfo.kr/wp-content/uploads/2026/02/git11-768x520.png 768w" sizes="auto, (max-width: 881px) 100vw, 881px" /></figure>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h1 class="wp-block-heading">3) macOS 설치 (Homebrew가 제일 편함)</h1>



<p>Git 공식 문서에서도 macOS에서 Homebrew 설치를 안내합니다.</p>



<h2 class="wp-block-heading">3-1) Homebrew가 없다면</h2>



<p>Homebrew 공식 설치 문서:</p>



<h2 class="wp-block-heading">3-2) Git 설치</h2>



<pre class="wp-block-preformatted">brew install git<br>git --version</pre>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p>경험팁: macOS 기본 Git이 “있긴 한데 오래된 버전”인 경우가 있어서, 저는 brew로 깔고 업데이트 관리하는 게 제일 편했습니다.</p>
</blockquote>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h1 class="wp-block-heading">4) Ubuntu/Linux 설치 (apt로 간단)</h1>



<p>Ubuntu 문서에서도 Git을 다루며, 필요하면 문서 패키지(<code>git-doc</code>)도 설치할 수 있다고 안내합니다.</p>



<pre class="wp-block-preformatted">sudo apt update<br>sudo apt install -y git<br>git --version</pre>



<p>(문서까지 설치하고 싶으면)</p>



<pre class="wp-block-preformatted">sudo apt install -y git-doc</pre>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h1 class="wp-block-heading">5) 설치 후 “딱 2분” 필수 설정 (안 하면 커밋에 이름이 이상하게 찍힘)</h1>



<p>아래 2개는 무조건 해두세요.</p>



<pre class="wp-block-preformatted">git config --global user.name "name"<br>git config --global user.email "you@example.com"</pre>



<p>설정 확인:</p>



<pre class="wp-block-preformatted">git config --global --list</pre>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p>경험상, 이거 안 해두면 나중에 커밋 작성자가 “PC 계정명”으로 찍히거나, 프로젝트마다 설정 꼬여서 다시 고치게 됩니다.</p>
</blockquote>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="580" height="554" src="https://howinfo.kr/wp-content/uploads/2026/02/git12.png" alt="" class="wp-image-1960" srcset="https://howinfo.kr/wp-content/uploads/2026/02/git12.png 580w, https://howinfo.kr/wp-content/uploads/2026/02/git12-300x287.png 300w" sizes="auto, (max-width: 580px) 100vw, 580px" /></figure>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h1 class="wp-block-heading">6) 이제 진짜 시작: “내 폴더를 Git으로 관리하기”</h1>



<h2 class="wp-block-heading">6-1) 새 폴더 만들고 Git 시작</h2>



<pre class="wp-block-preformatted">mkdir my-project<br>cd my-project<br>git init</pre>



<p><code>git init</code>은 “이 폴더를 Git 저장소로 만들겠다”라는 뜻입니다.</p>



<h2 class="wp-block-heading">6-2) 파일 하나 만들어보고 첫 커밋</h2>



<p>예: <code>README.md</code>를 만든다고 치면</p>



<pre class="wp-block-preformatted">echo "# my-project" &gt; README.md<br>git status</pre>



<h3 class="wp-block-heading">여기서 초보가 제일 헷갈리는 개념: “스테이징”</h3>



<p>Git은 커밋 전에 <strong>무엇을 커밋할지 후보에 올리는 단계</strong>가 있어요.</p>



<ol class="wp-block-list">
<li>스테이징(커밋 후보로 올리기)</li>
</ol>



<pre class="wp-block-preformatted">git add .</pre>



<ol start="2" class="wp-block-list">
<li>커밋(스냅샷 저장)</li>
</ol>



<pre class="wp-block-preformatted">git commit -m "chore: first commit"</pre>



<ol start="3" class="wp-block-list">
<li>로그 확인</li>
</ol>



<pre class="wp-block-preformatted">git log --oneline</pre>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h1 class="wp-block-heading">7) 매일 쓰는 “초보 루틴 3종” (이 순서만 외우면 됨)</h1>



<p>제가 정착한 순서가 이거였어요:</p>



<ol class="wp-block-list">
<li>지금 상태 보기</li>
</ol>



<pre class="wp-block-preformatted">git status</pre>



<ol start="2" class="wp-block-list">
<li>뭐가 바뀌었는지 보기</li>
</ol>



<pre class="wp-block-preformatted">git diff</pre>



<ol start="3" class="wp-block-list">
<li>올리고( add ) 저장( commit )</li>
</ol>



<pre class="wp-block-preformatted">git add .<br>git commit -m "feat: update something"</pre>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="778" height="839" src="https://howinfo.kr/wp-content/uploads/2026/02/git14.png" alt="" class="wp-image-1961" style="width:650px;height:auto" srcset="https://howinfo.kr/wp-content/uploads/2026/02/git14.png 778w, https://howinfo.kr/wp-content/uploads/2026/02/git14-278x300.png 278w, https://howinfo.kr/wp-content/uploads/2026/02/git14-768x828.png 768w" sizes="auto, (max-width: 778px) 100vw, 778px" /></figure>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h1 class="wp-block-heading">8) 실수했을 때 복구(초보 필수 3개)</h1>



<p>실무/개인 모두 이 3개가 가장 많이 씁니다.</p>



<h2 class="wp-block-heading">(1) 커밋 전 변경을 다 버리고 싶다 (되돌리기)</h2>



<pre class="wp-block-preformatted">git restore .</pre>



<h2 class="wp-block-heading">(2) add를 잘못했다(스테이징 취소)</h2>



<pre class="wp-block-preformatted">git restore --staged .</pre>



<h2 class="wp-block-heading">(3) 방금 커밋 메시지를 고치고 싶다</h2>



<pre class="wp-block-preformatted">git commit --amend -m "fix: correct message"</pre>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h1 class="wp-block-heading">9) 여기까지가 “Git만으로” 할 수 있는 것</h1>



<ul class="wp-block-list">
<li>내 PC에서 버전관리 ✅</li>



<li>변경이력/복구 ✅</li>
</ul>



<p>다음 단계는 <strong>GitHub(원격 저장소)</strong> 연결인데,<br>초보는 여기서 <strong>로그인(토큰)</strong>, <strong>push/pull</strong>, <strong>브랜치</strong>가 같이 나오면서 갑자기 어려워집니다.</p>



<p></p>
<p>게시물 <a href="https://howinfo.kr/git-%ec%99%84%ec%a0%84-%ec%b4%88%eb%b3%b4-%ea%b0%80%ec%9d%b4%eb%93%9c-%eb%8b%a4%ec%9a%b4%eb%a1%9c%eb%93%9c%eb%b6%80%ed%84%b0-%ec%b2%ab-%ec%bb%a4%eb%b0%8b%ea%b9%8c%ec%a7%80/">Git 완전 초보 가이드: 다운로드부터 “첫 커밋”까지 (실전 경험 버전)</a>이 <a href="https://howinfo.kr">하우인포-IT·테크</a>에 처음 등장했습니다.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://howinfo.kr/git-%ec%99%84%ec%a0%84-%ec%b4%88%eb%b3%b4-%ea%b0%80%ec%9d%b4%eb%93%9c-%eb%8b%a4%ec%9a%b4%eb%a1%9c%eb%93%9c%eb%b6%80%ed%84%b0-%ec%b2%ab-%ec%bb%a4%eb%b0%8b%ea%b9%8c%ec%a7%80/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Git, 처음 써보는 사람을 위한 가장 쉬운 정리</title>
		<link>https://howinfo.kr/git-%ec%b2%98%ec%9d%8c-%ec%8d%a8%eb%b3%b4%eb%8a%94-%ec%82%ac%eb%9e%8c%ec%9d%84-%ec%9c%84%ed%95%9c-%ea%b0%80%ec%9e%a5-%ec%89%ac%ec%9a%b4-%ec%a0%95%eb%a6%ac/</link>
					<comments>https://howinfo.kr/git-%ec%b2%98%ec%9d%8c-%ec%8d%a8%eb%b3%b4%eb%8a%94-%ec%82%ac%eb%9e%8c%ec%9d%84-%ec%9c%84%ed%95%9c-%ea%b0%80%ec%9e%a5-%ec%89%ac%ec%9a%b4-%ec%a0%95%eb%a6%ac/#respond</comments>
		
		<dc:creator><![CDATA[hong]]></dc:creator>
		<pubDate>Fri, 06 Feb 2026 12:45:17 +0000</pubDate>
				<category><![CDATA[개발·코딩]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[git 기초]]></category>
		<category><![CDATA[git 사용법]]></category>
		<category><![CDATA[git 입문]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[개발 기초]]></category>
		<category><![CDATA[개발자도구]]></category>
		<category><![CDATA[깃]]></category>
		<category><![CDATA[깃허브]]></category>
		<category><![CDATA[버전관리]]></category>
		<category><![CDATA[소스코드관리]]></category>
		<category><![CDATA[초보 개발자]]></category>
		<category><![CDATA[협업개발]]></category>
		<guid isPermaLink="false">https://howinfo.kr/?p=1295</guid>

					<description><![CDATA[<p>개발을 하다 보면“이 파일 언제 바꿨지?”“어제 코드로 다시 돌아가고 싶은데…”이런 순간이 꼭 옵니다. 이럴 때 도움을 주는 도구가 바로 Git입니다.Git은...</p>
<p>게시물 <a href="https://howinfo.kr/git-%ec%b2%98%ec%9d%8c-%ec%8d%a8%eb%b3%b4%eb%8a%94-%ec%82%ac%eb%9e%8c%ec%9d%84-%ec%9c%84%ed%95%9c-%ea%b0%80%ec%9e%a5-%ec%89%ac%ec%9a%b4-%ec%a0%95%eb%a6%ac/">Git, 처음 써보는 사람을 위한 가장 쉬운 정리</a>이 <a href="https://howinfo.kr">하우인포-IT·테크</a>에 처음 등장했습니다.</p>
]]></description>
										<content:encoded><![CDATA[
<p>개발을 하다 보면<br>“이 파일 언제 바꿨지?”<br>“어제 코드로 다시 돌아가고 싶은데…”<br>이런 순간이 꼭 옵니다.</p>



<p>이럴 때 도움을 주는 도구가 바로 <strong>Git</strong>입니다.<br>Git은 어렵게 말하면 <em>버전 관리 시스템</em>이지만,<br>쉽게 말하면 <strong>코드의 변경 기록을 차곡차곡 저장해 주는 도구</strong>라고 생각하면 됩니다.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Git을 쓰면 뭐가 좋아질까?</h2>



<p>Git을 사용하면 이런 점들이 좋아집니다.</p>



<ul class="wp-block-list">
<li>코드가 망가져도 이전 상태로 되돌릴 수 있고</li>



<li>어떤 파일을 언제 수정했는지 한눈에 볼 수 있고</li>



<li>혼자 작업해도, 여러 명이 함께 작업해도 관리가 쉬워집니다</li>
</ul>



<p>처음에는 낯설 수 있지만,<br>기본 흐름만 익히면 생각보다 어렵지 않습니다.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Git을 사용하기 전, 딱 한 번만 하는 설정</h2>



<p>Git을 처음 설치했다면<br>“이 작업을 누가 했는지”를 알 수 있도록 이름과 이메일을 설정합니다.</p>



<pre class="wp-block-code"><code>git config --global user.name "내 이름"
git config --global user.email "내이메일@example.com"
</code></pre>



<p>설정이 잘 되었는지는 아래 명령으로 확인할 수 있습니다.</p>



<pre class="wp-block-code"><code>git config --list
</code></pre>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p>참고로 <code>--global</code>은<br>앞으로 만드는 모든 프로젝트에 공통으로 적용됩니다.</p>
</blockquote>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Git 저장소 만들기</h2>



<h3 class="wp-block-heading">새 프로젝트에서 시작하는 경우</h3>



<pre class="wp-block-code"><code>git init
</code></pre>



<p>이 한 줄로<br>“이 폴더를 Git으로 관리하겠다”라고 선언하는 셈입니다.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h3 class="wp-block-heading">이미 만들어진 프로젝트를 가져오는 경우</h3>



<pre class="wp-block-code"><code>git clone 저장소주소
</code></pre>



<p>GitHub에 있는 프로젝트를 그대로 내려받을 때 사용하는 방법입니다.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Git의 기본 흐름 이해하기</h2>



<p>Git은 항상 비슷한 순서로 움직입니다.</p>



<ol class="wp-block-list">
<li>파일을 수정하고</li>



<li>변경된 파일을 모아두고</li>



<li>하나의 기록으로 저장하고</li>



<li>필요하면 원격 저장소로 올립니다</li>
</ol>



<p>이 과정을 반복한다고 생각하면 됩니다.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">지금 상태가 궁금할 때</h2>



<pre class="wp-block-code"><code>git status
</code></pre>



<p>이 명령어 하나만 잘 써도<br>“뭐가 바뀌었는지”, “아직 저장 안 된 게 뭔지”를 바로 알 수 있습니다.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">변경한 파일 저장하기</h2>



<h3 class="wp-block-heading">파일을 Git에 올릴 준비하기</h3>



<pre class="wp-block-code"><code>git add 파일이름
</code></pre>



<p>모든 변경 사항을 한 번에 추가하고 싶다면</p>



<pre class="wp-block-code"><code>git add .
</code></pre>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h3 class="wp-block-heading">변경 내용을 하나의 기록으로 남기기</h3>



<pre class="wp-block-code"><code>git commit -m "로그인 기능 추가"
</code></pre>



<p>이 메시지는<br>나중에 다시 봤을 때 <strong>무슨 작업을 했는지 바로 알 수 있게</strong> 적는 게 좋습니다.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">GitHub 같은 원격 저장소에 올리기</h2>



<pre class="wp-block-code"><code>git push origin main
</code></pre>



<p>이제 내 컴퓨터에만 있던 코드가<br>원격 저장소에도 안전하게 저장됩니다.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">자주 쓰게 되는 명령어들</h2>



<p>개인적으로 가장 많이 쓰는 것들만 정리해보면 이 정도입니다.</p>



<ul class="wp-block-list">
<li><code>git status</code> : 지금 상태 확인</li>



<li><code>git add</code> : 변경 파일 모으기</li>



<li><code>git commit</code> : 기록 남기기</li>



<li><code>git pull</code> : 최신 코드 가져오기</li>



<li><code>git push</code> : 코드 올리기</li>
</ul>



<p>처음에는 이 다섯 가지만 익혀도 충분합니다.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">실수했을 때 대처 방법</h2>



<h3 class="wp-block-heading">방금 커밋한 걸 취소하고 싶을 때</h3>



<pre class="wp-block-code"><code>git reset HEAD~1
</code></pre>



<p>파일은 그대로 두고<br>커밋만 취소할 수 있습니다.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h3 class="wp-block-heading">원격 저장소 주소가 바뀐 경우</h3>



<pre class="wp-block-code"><code>git remote set-url origin 새주소
</code></pre>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">마무리하며</h2>



<p>Git은 처음 접하면 낯설고 어렵게 느껴지지만,<br>실제로는 <strong>코드를 안전하게 지키기 위한 도구</strong>에 가깝습니다.</p>



<p>처음부터 모든 기능을 알 필요는 없고,</p>



<ul class="wp-block-list">
<li>상태 확인</li>



<li>저장</li>



<li>올리기</li>
</ul>



<p>이 세 가지만 자연스럽게 익혀도<br>개발이 훨씬 편해집니다.</p>



<p></p>
<p>게시물 <a href="https://howinfo.kr/git-%ec%b2%98%ec%9d%8c-%ec%8d%a8%eb%b3%b4%eb%8a%94-%ec%82%ac%eb%9e%8c%ec%9d%84-%ec%9c%84%ed%95%9c-%ea%b0%80%ec%9e%a5-%ec%89%ac%ec%9a%b4-%ec%a0%95%eb%a6%ac/">Git, 처음 써보는 사람을 위한 가장 쉬운 정리</a>이 <a href="https://howinfo.kr">하우인포-IT·테크</a>에 처음 등장했습니다.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://howinfo.kr/git-%ec%b2%98%ec%9d%8c-%ec%8d%a8%eb%b3%b4%eb%8a%94-%ec%82%ac%eb%9e%8c%ec%9d%84-%ec%9c%84%ed%95%9c-%ea%b0%80%ec%9e%a5-%ec%89%ac%ec%9a%b4-%ec%a0%95%eb%a6%ac/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
