差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录前一修订版
后一修订版
前一修订版
it:server:git服务器 [2023-04-07 17:33] goldentianyait:server:git服务器 [2023-08-07 11:59] (当前版本) – [GitLab 网站] goldentianya
行 30: 行 30:
 git "custom git server" >> README.md git "custom git server" >> README.md
 echo "node_modules" >> .gitignore echo "node_modules" >> .gitignore
 +echo "dist" >> .gitignore
 git add . git add .
 git commit -m "first message" git commit -m "first message"
行 45: 行 46:
 </code> </code>
  
-<konsole>+<code>
 Enumerating objects: 4, done. Enumerating objects: 4, done.
 Counting objects: 100% (4/4), done. Counting objects: 100% (4/4), done.
行 53: 行 54:
 Total 4 (delta 0), reused 0 (delta 0), pack-reused 0 Total 4 (delta 0), reused 0 (delta 0), pack-reused 0
 To ssh://serverpi:/home/git/repository/test.git To ssh://serverpi:/home/git/repository/test.git
-* [new branch]      main -> main + ''* [new branch]      main -> main'' 
-</konsole>+</code>
  
 在第二天机器上获取最新代码 在第二天机器上获取最新代码
行 62: 行 63:
 </code> </code>
  
 +====== Git 命令 ======
 +<code shell>
 +// 有可能是main
 +git push origin master
 +git pull origin master 
 +</code>
 +
 +
 +  * 取消 <color #ff7f27>''%%git add .%%''</color> 的操作 <color #ff7f27>''%%git reset%%''</color>
 +  * 删除错误加载的 <color #ff7f27>''%%git rm -r --cached node_modules/%%''</color>
 +  * 查看记录 <color #ff7f27>''%%git log%%''</color> (最后按键 q 退出)
 +  * 查看更改 <color #ff7f27>''%%git status%%''</color>     to observe changes 
 +
 +====== GitLab 网站 ======
 +
 +[[https://about.gitlab.com/install/#ubuntu|安装说明]]
 +
 +安装Postfix <color #ff7f27>''%%sudo apt-get install postfix%%''</color>,如果已经安装过的话,重新修改的命令为 <color #ff7f27>''%%sudo dpkg-reconfigure postfix%%''</color>
 +
 +<code | download>
 +sudo EXTERNAL_URL="https://gitlab.yfmai.eu.org" apt-get install gitlab-ee
 +</code>
 +
 +安装 gitlab 至少要4GB的内存,我的树莓派搞不定。
 +<color #ff7f27>''%%sudo gitlab-ctl stop%%''</color>
 +
 +{{tag>git}}
it/server/git服务器.1680888820.txt.gz · 最后更改: 2023-04-07 17:33 由 goldentianya
回到顶部
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0