git知识点
GIT 知识点
一、git怎样删除一个项目
1, 选择你要删除的私有项目;
2, 点击进去后,选择setting点击,找到Advanced;
3,点击删除项目(在这里既可以删除项目,也可以重命名项目)
4,完成。
二、简单操作
Command line instructions
You can also upload existing files from your computer using the instructions below.
Git global setup(全局设置)
git config --global user.name "weizitianming"
git config --global user.email "weizitianming@163.com"
Create a new repository(创建新的存仓库)
git clone git@gitlab.halos.bgi.com:haolibo/app1.git
cd app1
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@gitlab.halos.bgi.com:haolibo/app1.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@gitlab.halos.bgi.com:haolibo/app1.git
git push -u origin --all
git push -u origin --tags
###########################
添加分支后,
git clone git@gitlab.halos.bgi.com:happy-operation/project_01.git
cd project_01.git