git使用

Git global setup
git config --global user.name "yanghaifeng"
git config --global user.email "573618722@qq.com"
Create a new repository
git clone http://192.168.12.161:8090/group-dataanalyzer/dataanalyzerfront.git
cd dataanalyzerfront
touch README.md
git add README.md
git commit -m "add README"
Push an existing folder
cd existing_folder
git init
git remote add origin http://192.168.12.161:8090/group-dataanalyzer/dataanalyzerfront.git
git add .
git commit -m "Initial commit"
Push an existing Git repository
cd existing_repo
git remote rename origin old-origin
git remote add origin http://192.168.12.161:8090/group-dataanalyzer/dataanalyzerfront.git
上一篇:c – 在QLabel中显示sql查询的输出


下一篇:linux 下将war解压到当前目录