<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://workspace.onionmixer.net/wiki/index.php?action=history&amp;feed=atom&amp;title=Gentoo_redmine_git</id>
	<title>Gentoo redmine git - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://workspace.onionmixer.net/wiki/index.php?action=history&amp;feed=atom&amp;title=Gentoo_redmine_git"/>
	<link rel="alternate" type="text/html" href="https://workspace.onionmixer.net/wiki/index.php?title=Gentoo_redmine_git&amp;action=history"/>
	<updated>2026-04-04T09:26:16Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://workspace.onionmixer.net/wiki/index.php?title=Gentoo_redmine_git&amp;diff=405&amp;oldid=prev</id>
		<title>Onionmixer: 내용추가 및 수정</title>
		<link rel="alternate" type="text/html" href="https://workspace.onionmixer.net/wiki/index.php?title=Gentoo_redmine_git&amp;diff=405&amp;oldid=prev"/>
		<updated>2013-04-22T05:18:50Z</updated>

		<summary type="html">&lt;p&gt;내용추가 및 수정&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;;Gentoo linux 의 redmine 에서 git를 사용하는 아주 간단한법&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==개요==&lt;br /&gt;
&lt;br /&gt;
ssh port 를 별도로 사용하는 ssh 서버에 설치된 redmine 으로 git 를 사용하는경우에 대한 간단한 내용을 알아본다&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==redmine 에 git 설정하기==&lt;br /&gt;
&lt;br /&gt;
[[Gentoo_redmine_nginix_git|이 페이지]] 를 참고하도록 한다.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==redmine 에 ssh key를 등록하기==&lt;br /&gt;
&lt;br /&gt;
[[image:20130421_redmine_key_registration.png]]&lt;br /&gt;
&lt;br /&gt;
위의 화면을 참고해서 생성된 ssh key 중에서 &amp;#039;&amp;#039;&amp;#039;public key&amp;#039;&amp;#039;&amp;#039; 를 등록하도록 한다.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==특정 Linux 계정에서 git sync 준비하기==&lt;br /&gt;
&lt;br /&gt;
# 미리 만들어진 linux 계정을 하나 준비한다. 이후는 이 계정에서 git 작업을 하는것으로 간주한다.&lt;br /&gt;
# 계정의 ~/.ssh 디렉토리에 만들어진 private key 파일을 넣는다&lt;br /&gt;
# 계정의 ~/.ssh/config 파일을 다음처럼 편집하도록 한다&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
Host 대표이름&lt;br /&gt;
        Hostname git서버domain또는IP&lt;br /&gt;
        Port 포트번호&lt;br /&gt;
        User 접속할때사용할사용자이름(redmine정보참고)&lt;br /&gt;
        IdentityFile ~/.ssh/키파일이름&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
# ssh 를 이용해서 다음과같이 접속테스트를 진행한다&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
$ ssh 대표이름&lt;br /&gt;
PTY allocation request failed on channel 0&lt;br /&gt;
hello onion, this is gitolite gitolite-gentoo-2.3.1-gentoo running on git 1.7.12.4&lt;br /&gt;
the gitolite config gives you the following access:&lt;br /&gt;
     R   W 	git-repository이름&lt;br /&gt;
    @R_ @W_	testing&lt;br /&gt;
Connection to git서버domain또는IP closed.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
위와같은 결과를 볼 수 있으면 git 를 이용해서 작업을 한 준비가 된것이다.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==git 로 이용해서 작업을 시작하는 간단한내용들==&lt;br /&gt;
&lt;br /&gt;
# git 에서 commit 할때 사용할 정보를 먼저 작업하도록 한다&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
$ git config --global user.email &amp;quot;redmine에서사용하는이메일주소&amp;quot;&lt;br /&gt;
$ git config --global user.name &amp;quot;redmine에표시될이름&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
# 다음의 명령어를 이용해서 git repository 를 가져온다&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git clone ssh://대표이름/repository이름.git&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
# 이후 clonning 이 진행된 디렉토리로 이동해서 다음의 명령등을 사용해서 git 작업을 진행한다&lt;br /&gt;
#* git checkout branch_name :: branch 이름은 redmine 의 &amp;#039;&amp;#039;&amp;#039;저장소&amp;#039;&amp;#039;&amp;#039; 에서 확인하면 된다. 받아온 내용을 checkout 해서 작업할 수 있는 상태로 만든다&lt;br /&gt;
#* git add 파일이름 or * &amp;lt;- 파일을 추가한다&lt;br /&gt;
#* git reset HEAD 파일이름 &amp;lt;- git의 작업에서 파일을 특정파일을 제거하고싶은 경우에 사용한다&lt;br /&gt;
#* git status &amp;lt;- commit 되고 안되고 등의 git의 현재 상태에 대한 내용을 볼 수 있다&lt;br /&gt;
#* git commit -m &amp;quot;commit내용&amp;quot; &amp;lt;- 작업한 데이터를 local 저장소에 commit 한다&lt;br /&gt;
#* git push &amp;lt;- local 에 commit 된 상태를 서버로 push 한다&lt;br /&gt;
#* git pull &amp;lt;- 서버에서 데이터를 받아온다&lt;br /&gt;
#* git update &amp;lt;- 서버에서 get 한 데이터를 현재 local repository에 반영한다&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==git commit 시에 특정 파일을 제외하고 싶은경우==&lt;br /&gt;
&lt;br /&gt;
$GIT_REPOSITORY_DIR/.gitignore 파일안에 포함을 시키고싶지 않은 파일 및 디렉토리를 적어준다&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==참고자료==&lt;br /&gt;
&lt;br /&gt;
* git - 간편 안내서(정말 좋은문서인거같다) :: http://rogerdudler.github.io/git-guide/index.ko.html&lt;/div&gt;</summary>
		<author><name>Onionmixer</name></author>
	</entry>
</feed>