常用的指令 git相关 git add test.c 将test加入暂存区 git commit -m "雁塔区土豪" 将暂存区的文件提交, 提交信息为"雁塔区土豪" git pull origin master 将github上的文件下载到本地 git push origin master 将提交了的文件上传到github gcc相关 gcc main.c -o main 将main.c编译, 生成的可执行文件为main make相关 make test 执行make的test任务, 根据makefile里面的定义执行相关指令. makefile我来写.