git/github 删除添加文件

版权声明:未经同意,不得随意转载转载 https://blog.csdn.net/lucky541788/article/details/83507621

删除

  1. rm -r hello.py
  2. git commit -m 'remove hello.py'

添加

  1. git add 文件夹/ 添加整个文件夹及内容
  2. git add *.文件类型 添加目录中所有此文件类型的文件

添加后注意:

推送

  1. git remote add origin 你的远程库地址
  2. git push origin master

猜你喜欢

转载自blog.csdn.net/lucky541788/article/details/83507621