<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[Heck's  Blog]]></title> 
<link>https://www.heckjj.com/index.php</link> 
<description><![CDATA[一瞬间的决定，往往可以改变很多，事实上，让自己成功的往往不是知识，是精神！ 如果你总是为自己找借口，那只好让成功推迟。执行力，今天！]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[Heck's  Blog]]></copyright>
<item>
<link>https://www.heckjj.com/post//</link>
<title><![CDATA[如何使用docker安装gitlib]]></title> 
<author>Heck &lt;@hecks.tk&gt;</author>
<category><![CDATA[运维管理]]></category>
<pubDate>Thu, 18 Nov 2021 06:18:55 +0000</pubDate> 
<guid>https://www.heckjj.com/post//</guid> 
<description>
<![CDATA[ 
	<span style="font-size: 18px;"><strong>gitlab安装</strong></span><br/>docker启动gitlab 并配置端口号 因为要映射到外网 因此docker的第一个端口号要与外网端口号一致 防止新建的库端口号与访问地址不一致<br/><br/>docker run -d &#92;<br/>&nbsp;&nbsp;&nbsp;&nbsp;-p 80:30039 &#92;<br/>&nbsp;&nbsp;&nbsp;&nbsp;-p 443:443 &#92;<br/>&nbsp;&nbsp;&nbsp;&nbsp;-p 1022:22 &#92;<br/>&nbsp;&nbsp;&nbsp;&nbsp;--name gitlab &#92;<br/>&nbsp;&nbsp;&nbsp;&nbsp;--restart unless-stopped &#92;<br/>&nbsp;&nbsp;&nbsp;&nbsp;-v gitlab-config:/etc/gitlab &#92;<br/>&nbsp;&nbsp;&nbsp;&nbsp;-v gitlab-logs:/var/log/gitlab &#92;<br/>&nbsp;&nbsp;&nbsp;&nbsp;-v gitlab-data:/var/opt/gitlab &#92;<br/>&nbsp;&nbsp;&nbsp;&nbsp;twang2218/gitlab-ce-zh<br/><br/>修改配置文件/etc/gitlab/<br/>配置 external_url 为新建库地址 smtp配置为邮件服务<br/><br/>external_url &#039;http://www.heckjj.com&#039;<br/>gitlab_rails[&#039;smtp_enable&#039;] = true<br/>gitlab_rails[&#039;smtp_address&#039;] = &quot;smtp.qq.com&quot;<br/>gitlab_rails[&#039;smtp_port&#039;] = 25<br/>gitlab_rails[&#039;smtp_user_name&#039;] = &quot;i@heckjj.com&quot;<br/>gitlab_rails[&#039;smtp_password&#039;] = &quot;OFJGZWLKJQVXWLHK&quot;<br/>gitlab_rails[&#039;smtp_domain&#039;] = &quot;qq.com&quot;<br/>gitlab_rails[&#039;smtp_authentication&#039;] = &quot;login&quot;<br/>gitlab_rails[&#039;smtp_enable_starttls_auto&#039;] = true<br/>gitlab_rails[&#039;smtp_tls&#039;] = false<br/>gitlab_rails[&#039;gitlab_email_from&#039;] = &quot;i@heckjj.com&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#配置gitlab的配置的发信人<br/><br/>访问 http://www.heckjj.com/ 设置密码<br/>登录账号:root<br/>密码:设置的密码<br/><br/><span style="font-size: 18px;"><strong>git常见操作</strong></span><br/><br/>命令行操作:<br/>Git 全局设置<br/><br/>git config --global user.name &quot;heck&quot;<br/>git config --global user.email &quot;i@heckjj.com&quot;<br/>创建新版本库<br/><br/>git clone http://www.heckjj.com/heck/heck.git<br/>cd heck<br/>touch README.md<br/>git add README.md<br/>git commit -m &quot;add README&quot;<br/>git push -u origin master<br/>已存在的文件夹<br/><br/>cd existing_folder<br/>git init<br/>git remote add origin http://www.heckjj.com/heck/heck.git<br/>git add .<br/>git commit -m &quot;Initial commit&quot;<br/>git push -u origin master<br/>已存在的 Git 版本库<br/><br/>cd existing_repo<br/>git remote rename origin old-origin<br/>git remote add origin http://www.heckjj.com/heck/heck.git<br/>git push -u origin --all<br/>git push -u origin --tags
]]>
</description>
</item><item>
<link>https://www.heckjj.com/post//#blogcomment</link>
<title><![CDATA[[评论] 如何使用docker安装gitlib]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>https://www.heckjj.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>