1. 在gitHub 上新建仓库

2. 打开项目根目录
运行如下命令
1. git init
2. git remote add (git地址)
3. git add .
4. git commit -m "init"
5. git push -u origin master
本文详细介绍如何在GitHub上创建新仓库并进行本地项目初始化,包括运行关键命令如git init, git remote add, git add, git commit及git push等,帮助开发者快速掌握GitHub仓库的基本操作。
1. 在gitHub 上新建仓库

2. 打开项目根目录
运行如下命令
1. git init
2. git remote add (git地址)
3. git add .
4. git commit -m "init"
5. git push -u origin master
185
112
5574
2048
2056

被折叠的 条评论
为什么被折叠?