git
文章平均质量分 64
weixin_45306829
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
git revert/reset
git commit --amendalter the most-recent commitgit revertreverses given commitgit revert 命令用于还原之前创建的 commit:$ git revert <SHA-of-commit-to-revert>此命令:将撤消目标 commit 所做出的更改创建一个新的 commit 来记录这一更改git reseterases commitsgit reset 命令被用来清除 commit原创 2021-05-26 14:46:26 · 117 阅读 · 0 评论 -
git-add/commit/diff/push
making commitsgit addgit add:add files from the working directory to the staging index $ git rm --cached #unstaged $ git add css/app.css js/app.js # 等同于 $ git add .git commitgit commit:take files from the staging index and save them原创 2021-05-26 14:31:28 · 220 阅读 · 0 评论 -
git-log/show
Git log and got showreview a repository's history are git log and git showGit loggit log:display information about the existing commits默认情况下,该命令会显示仓库中每个 commit 的:SHA作者日期消息SHA: SHA 基本上就是每次提交的 ID 号码,是由 40 个字符(0-9 和 a-f)组成的字符串,根据 Git 中的文件内容原创 2021-05-26 14:34:59 · 1091 阅读 · 0 评论 -
git-tag/branch/merge
git tagadd tags to specific commitsA tag is an extra for a commit that can indicate useful information,git tag -a v1.0# 使用了 -a 选项。该选项告诉 git 创建一个带注释的标签。$ git tag -d v1.0# 删除 git 标签$ git tag -a v1.0 a87984# 加入SHA向以前的commit添加标签Git 2.13版本后输入git log原创 2021-05-26 14:34:04 · 241 阅读 · 0 评论 -
git-clone/init
three of the most popularGitSubversionMercurialTwo different caregories类别the centralized model集中式模型the distributed model分布式模型命令# 设置你的 Git 用户名$ git config --global user.name "<Your-Full-Name>"# 设置你的 Git 邮箱$ git config --global user.emai原创 2021-05-26 14:33:01 · 186 阅读 · 0 评论
分享