差别

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

到此差别页面的链接

两侧同时换到之前的修订记录前一修订版
后一修订版
前一修订版
it:server:git服务器 [2023-04-07 18:10] – [GitLab 网站] 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"
行 61: 行 62:
 git pull origin main git pull origin main
 </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 网站 ====== ====== GitLab 网站 ======
行 71: 行 85:
 sudo EXTERNAL_URL="https://gitlab.yfmai.eu.org" apt-get install gitlab-ee sudo EXTERNAL_URL="https://gitlab.yfmai.eu.org" apt-get install gitlab-ee
 </code> </code>
 +
 +安装 gitlab 至少要4GB的内存,我的树莓派搞不定。
 +<color #ff7f27>''%%sudo gitlab-ctl stop%%''</color>
 +
 +{{tag>git}}
it/server/git服务器.1680891034.txt.gz · 最后更改: 2023-04-07 18:10 由 goldentianya
回到顶部
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0