1.首先打开本地项目bash终端。
2. git init --initial-branch=master
3. git remote add origin 后面接git上面需要提交的仓库地址。http
4. git add .
5. git commit -m “Initial commit”
6. git push -u origin master
本地项目。想关联远端另一个git仓库并提交代码
最新推荐文章于 2025-04-16 21:41:52 发布
1.首先打开本地项目bash终端。
2. git init --initial-branch=master
3. git remote add origin 后面接git上面需要提交的仓库地址。http
4. git add .
5. git commit -m “Initial commit”
6. git push -u origin master