日常开发笔记总结(十一)
git命令使用
新工作中由于是在linux环境上写代码,因此原来使用小乌龟提交代码的方式不再适用,因此利用空余时间学习git命令行的使用。
命令行向github推送代码,先在github上创建了仓库:
echo "#hello,world" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin git@github.com:52coder/hello-world.git
git push -u origin ......