#git初始化
git init

#全局级配置,如果没有仓库级别的特殊配置,默认读取这个配置
git config --global user.name "name"
git config --global user.email "email"

#仓库级配置,一般一个项目配置一次
git config user.name "name"
git config user.email "email"

#添加文件
git add .

#commit
git commit -m "备注"

#设置remote地址
git remote add origin git@***/***.git

#把本地仓库分支master内容推送到元仓库去,第一次推送master分支时,加上了 –u参数,Git不但会把本地的master分支内容推送的远程新的master分支,还会把本地的master分支和远程的master分支关联起来
git push -u origin master

 


https://blog.csdn.net/vi_error/article/details/80608793

相关文章:

  • 2022-12-23
  • 2021-08-16
  • 2022-02-11
  • 2022-12-23
  • 2022-12-23
  • 2021-09-24
  • 2021-05-19
  • 2022-12-23
猜你喜欢
  • 2022-01-11
  • 2021-08-20
  • 2022-12-23
  • 2022-12-23
  • 2018-08-25
相关资源
相似解决方案