git operation command
1 Global settings
Git global setup:
git config --global user.name "Administrator"
git config --global user.email "[email protected]"
2 After gitlab builds the project, submit a new project, as a project architect, structure After completing the initial commit
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 After gitlab builds the project Existing project submission, existing repository submission
Existing Git Repo?
cd existing_git_repo
git remote add origin git@uap-gitlab:root/test1.git
git push -u origin master
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=326711819&siteId=291194637
Recommended
Ranking