git 操作命令
1 全局设置
Git global setup:
git config --global user.name "Administrator"
git config --global user.email "[email protected]"
2 gitlab建好project后新的项目提交,作为项目架构者,架构完成以后初始提交
mkdir test1
cd test1
git init
touch README
git add README
git commit -m 'first commit'
git remote add origin git@uap-gitlab:root/test1.git
git push -u origin master
3 gitlab建好project后已有项目提交,本地存在的仓库提交
Existing Git Repo?
cd existing_git_repo
git remote add origin git@uap-gitlab:root/test1.git
git push -u origin master
猜你喜欢
转载自xshwlx.iteye.com/blog/1987723
今日推荐
周排行