美文网首页
GitLab新增本地项目

GitLab新增本地项目

作者: 华子1889 | 来源:发表于2019-01-02 12:31 被阅读0次

该项目的仓库是空的
如果文件已存在,可以使用下面的 命令行指南 推送它们。
请注意,master分支自动受保护。进一步了解保护分支

Command line instructions
Git global setup
git config --global user.name "username"
git config --global user.email "xxx@xxx.com"
Create a new repository
git clone http://git.xxx.cn/root/aaaa.git
cd aaaa
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master
Existing folder
cd existing_folder
git init
git remote add origin http://git.xxx.cn/root/aaaa.git
git add .
git commit -m "Initial commit"
git push -u origin master
Existing Git repository
cd existing_repo
git remote rename origin old-origin
git remote add origin http://git.xxx.cn/root/aaaa.git
git push -u origin --all
git push -u origin --tags

相关文章

网友评论

      本文标题:GitLab新增本地项目

      本文链接:https://www.haomeiwen.com/subject/qjczlqtx.html