feiquan

Command line instructions

Git global setup  设置全局的git用户
git config --global user.name "your name"
git config --global user.email "your email"
Create a new repository  创建一个项目
git clone ssh://program_url.git
cd program
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  ssh://program_url.git
git add . git commit -m "Initial commit" git push -u origin master
Existing Git repository 创建一个项目,当存在一个项目时
cd existing_repo
git remote rename origin old-origin
git remote add origin ssh://program_url.git
 git push -u origin --all git push -u origin --tags

分类:

技术点:

相关文章:

  • 2021-06-20
  • 2022-12-23
  • 2021-04-24
  • 2022-12-23
  • 2021-04-01
  • 2022-02-13
  • 2022-02-23
  • 2021-05-22
猜你喜欢
  • 2021-09-21
  • 2021-04-22
  • 2021-09-06
  • 2021-06-06
  • 2021-09-06
  • 2022-12-23
  • 2021-08-25
相关资源
相似解决方案