Git 初始化的步骤有以下几个:
git init
命令初始化一个新的 Git 仓库。git config --global user.name "Your Name"
git config --global user.email "your.email@example.com"
git add <file1> <file2> ...
git commit -m "Initial commit"
git remote add origin <remote_repository_url>
git push -u origin master
完成上述步骤后,就成功初始化了一个 Git 仓库并提交了第一个版本。
辰迅云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
推荐阅读: git怎么删除已经commit的文件