git新建仓库的使用&新建项目加入仓库

本文参考至git 的创建步骤

or create a new repository on the command line

echo "# LeeCodeTest" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/*******
git push -u origin master

…or push an existing repository from the command line

git remote add origin https://github.com/luotongluo/****
git push -u origin master

or import code from another repository

You can initialize this repository with code from a Subversion, Mercurial, or TFS project.

posted @ 2022-12-07 18:37  diligently  阅读(81)  评论(0)    收藏  举报