修改远程库连接
git remote rm origin
git remote add origin [url]
gitlab创建项目后引导----------
Git global setup 用户配置
git config --global user.name "s***" --用户名
git config --global user.email "s***@****.com" --登录账号邮箱
Create a new repository 新建库 提交一个文件
git clone git@*****.com:s***/sh-******----on.git --项目地址
cd shi******tion --从版本库上拉取到wen
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 --初始化git
git remote add origin git@******.com:s***/shi********tion.git --将本地项目目录与版本库地址关联
git add . --添加目录下所有文件
git commit -m "Initial commit" --提交
git push -u origin master --推送到版本库
Push an existing Git repository 推送现有的库
cd existing_repo
git remote rename origin old-origin
git remote add origin git@*****.com:s***/shis*******on.git
git push -u origin --all
git push -u origin --tags