ubuntu搭建gitlab代码管理仓库

2019-07-13  本文已影响0人  Joyner2018

地址:

https://blog.csdn.net/qq_36467463/article/details/78283874

配置好了后

注册用户,邮箱不重复。

Git global setup

git config --global user.name "zhiwen.wang"

git config --global user.email "1042261073@qq.com"

Create a new repository

git clone git@192.168.9.5:zhiwen.wang/re-id.git

cd re-id

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 remote add origin git@192.168.9.5:zhiwen.wang/re-id.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@192.168.9.5:zhiwen.wang/re-id.git

git push -u origin --all

git push -u origin --tags

gitlab上下代码

git pull

更新代码到gitlab

git add new.cpp

git commit -c 'add new.cpp'

git push

上一篇 下一篇

猜你喜欢

热点阅读