git
文章平均质量分 64
weixin_45306829
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
git revert/reset
git commit --amend alter the most-recent commit git revert reverses given commit git revert 命令用于还原之前创建的 commit: $ git revert <SHA-of-commit-to-revert> 此命令: 将撤消目标 commit 所做出的更改 创建一个新的 commit 来记录这一更改 git reset erases commits git reset 命令被用来清除 commit原创 2021-05-26 14:46:26 · 117 阅读 · 0 评论 -
git-add/commit/diff/push
making commits git add git 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 commit git 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 show review a repository's history are git log and git show Git log git 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 tag add tags to specific commits A 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 · 240 阅读 · 0 评论 -
git-clone/init
three of the most popular Git Subversion Mercurial Two 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 评论
分享