现有文件夹添加到git仓库的步骤

保存一下现有文件夹添加到git仓库的步骤(已创建好空的仓库,地址为:https://git.xxx.com/firework/xxx.git

  • cd existing_folder
  • git init
  • git remote add origin https://git.xxx.com/firework/xxx.git
  • git add .
  • git commit -m "init"
  • git push -u origin master
posted @ 2020-02-01 18:41  寂地烟火  阅读(12)  评论(0)    收藏  举报  来源