Git全局设置
git config --global user.name "朱广发" git config --global user.email "784670492@qq.com"
创建一个新的存储库
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
推送一个已有的文件夹
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
推送一个现有的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