git 本地仓库关联到远程仓库

  1. Quick Start
    1. 初始化git仓库
    2. …or push an existing repository from the command line
    3. 将所有变更提交到本地仓库
    4. 提交注释
    5. 本地仓库推送到远程仓库

已有github项目,本地修改推送方案,参考链接:https://blog.csdn.net/sinat_39049092/article/details/113417142.

Quick Start

初始化git仓库

$ git init

More info: Writing

…or push an existing repository from the command line

git remote add origin [email protected]:nxtjdc/test.git
git branch -M main
git push -u origin main

将所有变更提交到本地仓库

$ git add .

提交注释

$ git commit -m "update"

本地仓库推送到远程仓库

$ git push

转载请注明来源,欢迎对文章中的引用来源进行考证,欢迎指出任何有错误或不够清晰的表达。