1, 在网页上找到newproject 按钮,并点击

将本地project提交到git

2,出现如下页面后,填写项目名称后,点击Create project。

将本地project提交到git

3,项目创建成功之后,会生成库的地址。如:[email protected]:openni1.5demos/test.git

将本地project提交到git

 

4,本地命令行操作

Command line instructions

Git global setup

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

Create a new repository

git clone [email protected]:openni1.5demos/test.git
cd test
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]:openni1.5demos/test.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]:openni1.5demos/test.git
git push -u origin --all
git push -u origin --tags

相关文章:

  • 2021-11-14
  • 2021-10-26
  • 2021-08-29
  • 2021-10-06
  • 2021-11-06
  • 2022-03-09
  • 2021-08-16
猜你喜欢
  • 2021-04-24
  • 2021-08-28
  • 2021-08-08
  • 2021-06-20
  • 2022-12-23
  • 2021-09-09
  • 2022-12-23
相关资源
相似解决方案