将项目托管到Gitlab

来源:互联网 发布:打印机找不到usb端口 编辑:程序博客网 时间:2024/06/04 19:35

git config –global user.name (”用户名”)
git config –global user.email (”注册邮箱” )
cd D:/WorkSpace/Android/myProject (项目地址)
git init
git remote rm origin (避免出现:fatal: remote origin already exists. )
git remote add origin git@gitlab.com:*/###.git
(*是指用户名,#是指项目名称,其实就是直接复制你GitLab上的项目连接)
git add .
git commit -m “init files”
git config http.postBuffer 524288000 (加缓,存防止项目过大出现问题)
git push -u origin master (推上去)

0 0