gitlab notes

command line instructions

Git global settings

git config --global user.name "xuyl"
git config --global user.email "[email protected]"

Create a new repository

git clone [email protected]:root/GZL.git
cd GZL
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master

existing folder

cd existing_folder
git init
git remote add origin [email protected]:root/GZL.git
git add .
git commit -m "Initial commit"
git push -u origin master

Existing Git repository

cd existing_repo
git remote add origin [email protected]:root/GZL.git
git push -u origin --all
git push -u origin --tags

Guess you like

Origin blog.csdn.net/weixin_44157851/article/details/119797019