The repository for this project is empty

用户名          :小明
邮箱             :xiaoming@example.com
git代码库地址 :192.168.1.2:10001
git代码库       :test

 

Command line instructions

You can also upload existing files from your computer using the instructions below.

Git global setup

git config --global user.name "小明" 
git config --global user.email "xiaoming@example.com" 

Create a new repository

1 git clone ssh://git@192.168.1.2:10001/test.git 
2 cd web_cgi 
3 touch README.md 
4 git add README.md 
5 git commit -m "add README" 
6 git push -u origin master

Push an existing folder

1 cd existing_folder 
2 git init 
3 git remote add origin ssh://git@192.168.1.2:10001/test.git 
4 git add . 
5 git commit -m "Initial commit" 
6 git push -u origin master

Push an existing Git repository

1 cd existing_repo 
2 git remote rename origin old-origin 
3 git remote add origin ssh://git@192.168.1.2:10001/test.git 
4 git push -u origin --all 
5 git push -u origin --tags

 

相关文章:

  • 2022-12-23
  • 2021-11-12
  • 2021-08-02
  • 2022-12-23
猜你喜欢
  • 2021-08-10
  • 2021-08-18
  • 2021-05-27
  • 2021-06-10
  • 2022-02-22
  • 2022-12-23
相关资源
相似解决方案