打开终端,进入对应的文件夹 查看当前文件夹下有什么 ls or ls -al 进入文件夹 cd IdeaProjects/learning/DataStructure/ 添加 git add . 提交 git commit i (insert) 输入自己的评论 esc (退出) : wq! 推送 git push 拉取 git pull