📜  gitlab 添加远程上游 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:01.041000             🧑  作者: Mango

代码示例1
# First remove any existing hidden git folder in your project folder
# Initialize project in your folder
git init
# add your gitlab project as your remote origin
git remote add origin https://gitlab.com/your_account_name/project_name.git
# add all files in the folder
git add .
# commit changes
git commit -m "Initial commit"
# push your changes to the master branch
git push origin master
# Files should now be visible if you navigate to the address in your browser
https://gitlab.com/your_account_name/project_name