git命令:
- git init:创建版本库
- git add hello.txt :将文件添加到临;时区
- git commit -m "create hello.txt file"
- git status: 查看版本库状态
- git log :查看从近到远的提交日志
-git reflog :查看修改日志
-git remote add origin git@github.com:dyccodehome/gitCode.git:与github仓库建立链接
-git push -u origin master
未完待续...
git操作:
首先建立版本库:

第一步

第二步,通过git init命令把这个目录变成Git可以管理的仓库
第三步:使用git add 命令告诉Git,把文件添加到仓库
git add hello.txt
第四步:使用git commit告诉Git,把文件提交到仓库

-m后面输入的是本次提交的说明,可以输入任意内容,当然最好是有意义的,这样你就能从历史记录里方便地找到改动记录。
第五步:使用git status 查看

这样就表示工作树是干净的,可以继续
成功的命令执行没有任何显示
网友评论