Git global setup # 首先配置全局的用户名和邮箱
git config --global user.name "username" # username需要根据自己需要修改
git config --global user.email "xxx@xxx.com" # xxx@xxx.com 邮箱名字,需要根据自己需要修改
Create a new repository # 初始化一个空的仓库
git clone https://117.136.187.14:9080/ibs-data-group/dss-analyzer.git # 新git仓库地址
cd dss-analyzer
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master
Existing folder # 将本地已有的目录初始化到新的git库
cd existing_folder
git init
git remote add origin https://117.136.187.14:9080/ibs-data-group/dss-analyzer.git # 新git仓库地址
git add .
git commit -m "Initial commit"
git push -u origin master
Existing Git repository # 将从其他库clone下来的git代码上传到新的git库上
cd existing_repo
git remote rename origin old-origin
git remote add origin https://ip:port/ibs-data-group/dss-analyzer.git # 新git仓库地址
git push -u origin --all
git push -u origin --tags