使用git客户端往git平台上传代码的流程

1、git clone [email protected]:ssa/ssa_single.git linsecsa
//克隆下载代码(仅限第一次使用)
2、git pull
//拉去代码,并且更新(提交代码前必备)
3、git status
//查看当前状态(如果有更新了的代码,并且没有提交的会显示出来)
4、git add A
//将更新了,但是没有上传添加的代码添加上去
5、git status
//添加了代码之后,再次查看状态
6、git commit -m "zhaomengjie"
//提交代码到公共页面(引号里边的内容为注释)
7、git push
//最终将代码推上git上去
8、history
//查看历史命令的命令

猜你喜欢

转载自blog.csdn.net/wyqwilliam/article/details/82787524
今日推荐