赞
踩
https://github.com/
创建文件夹 game-demo
使用如下命令初始化仓库
git init
使用 VS Code 打开此项目,新建 index.html ,编写如下代码
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> </head> <body> <h1>hello </h1> <h2>world</h2> </body> </html>
然后使用如下领命提交代码
分别执行如下两个命令
git add index.html git commit -m 'new file'