git 的上传项目

Git global setup(
  • Git全局设置

git config --global user.name "朱广发"
git config --global user.email "784670492@qq.com"
Create a new repository(
  • 创建一个新的存储库

git clone https://gitlab.tdctech.cn/zhuguangfa/tdc_tool_for_records.git
cd tdc_tool_for_records
git switch -c master
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master
Push an existing folder(
  • 推送一个已有的文件夹

cd existing_folder
git init --initial-branch=master
git remote add origin https://gitlab.tdctech.cn/zhuguangfa/tdc_tool_for_records.git
git add .
git commit -m "Initial commit"
git push -u origin master
Push an existing Git repository(
  • 推送一个现有的Git存储库

cd existing_repo
git remote rename origin old-origin
git remote add origin https://gitlab.tdctech.cn/zhuguangfa/tdc_tool_for_records.git
git push -u origin --all
git push -u origin --tags
posted @ 2023-07-02 10:47  Kevin0is0me  阅读(4)  评论(0编辑  收藏  举报