Pro Git 中文版 第2版 2.1.66本章涵盖了你在使用 Git 完成各种工作时将 会用到的各种基本命令。 在学习完本章之后,你应该能够配置并初始化一个仓库(repository)、开始或停止跟 踪(track)文件、暂存(stage)或提交(commit)更改。 本章也将向你演示了如何配置 Git 来忽略指定的文 件和文件模式、如何迅速而简单地撤销错误操作、如何浏览你的项目的历史版本以及不同提交(commits)之间 的差异、如何向你的远程仓库 如果在一个已存在文件的文件夹(而非空文件夹)中进行版本控制,你应该开始追踪这些文件并进行初始提交。 可以通过 git add 命令来指定所需的文件来进行追踪,然后执行 git commit : $ git add *.c $ git add LICENSE $ git commit -m 'initial project version' 稍后我们再逐一解释这些指令的行为。 现在,你已经得到了一个存在被追踪文件与初始提交的 样的 输出: $ git status On branch master Your branch is up-to-date with 'origin/master'. nothing to commit, working directory clean 这说明你现在的工作目录相当干净。换句话说,所有已跟踪文件在上次提交后都未被更改过。 此外,上面的信 息还表明,当前目录下没有出现任何处于未跟踪状态的新文件,否则0 码力 | 501 页 | 19.30 MB | 1 年前3
Pro Git 中文版 第2版 2.1.66命令 git help 获取与创建项目 git init git clone 快照基础 git add git status git diff git difftool git commit git reset git rm git mv git clean 分支与合并 git branch git checkout git merge git mergetool 了你在使用 Git 完成各种工作时将会用到的各种基本命令。 在学习完本章之 后,你应该能够配置并初始化一个仓库(repository)、开始或停止跟踪 (track)文件、暂存(stage)或提交(commit)更改。 本章也将向你演示 了如何配置 Git 来忽略指定的文件和文件模式、如何迅速而简单地撤销错误操 作、如何浏览你的项目的历史版本以及不同提交(commits)之间的差异、如 何向你的 如果在一个已存在文件的文件夹(而非空文件夹)中进行版本控制,你应该开 始追踪这些文件并进行初始提交。 可以通过 git add 命令来指定所需的文件 来进行追踪,然后执行 git commit : $ git add *.c $ git add LICENSE $ git commit -m 'initial project version' 稍后我们再逐一解释这些指令的行为。 现在,你已经得到了一个存在被追踪 文件与初始提交的0 码力 | 670 页 | 13.59 MB | 1 年前3
Weblate 4.2 用户文档from filesystem or it can be made available through Git exporter). Prior to this, you might want to commit any pending changes (see Lazy commits). This can be achieved in the user interface (in the Repository be automated by installing a webhook on your repository to trigger Weblate whenever there is a new commit, see Updating repositories for more details. 参见 持续本地化集成 Translating software using GNU Gettext 中的 Component configuration 配置中设置推送 URL,这使 Weblate 可以将更改推送到仓库。 3. 在 Weblate 中打开 项目配置 配置上的 push-on-commit,这将使 Weblate 在 Weblate 发生更改时将更改推送到仓库。 参见 持续本地化集成, Avoiding merge conflicts How to access repositories0 码力 | 648 页 | 9.34 MB | 1 年前3
Weblate 4.2 用户文档from filesystem or it can be made available through Git exporter). Prior to this, you might want to commit any pending changes (see Lazy commits). This can be achieved in the user interface (in the Repository be automated by installing a webhook on your repository to trigger Weblate whenever there is a new commit, see Updating repositories for more details. 参见: 持续本地化集成 1.7.2 Translating software using GNU Weblate 中的Component configuration 配置中设置推送 URL,这使 Weblate 可以将更改推送到仓库。 3. 在 Weblate 中打开项目配置 配置上的 push-on-commit,这将使 Weblate 在 Weblate 发生更改时将更改 推送到仓库。 参见: 持续本地化集成, Avoiding merge conflicts How to access repositories0 码力 | 410 页 | 4.56 MB | 1 年前3
Weblate 4.2.2 用户文档from filesystem or it can be made available through Git exporter). Prior to this, you might want to commit any pending changes (see 惰性提交). This can be achieved in the user interface (in the Repository maintenance) be automated by installing a webhook on your repository to trigger Weblate whenever there is a new commit, see 更新仓库 for more details. 参见 持续本地化集成 Translating software using GNU Gettext GNU Gettext [https://www 中的 Component configuration 配置中设置推送 URL,这使 Weblate 可以将更改推送到仓库。 3. 在 Weblate 中打开 项目配置 配置上的 push-on-commit,这将使 Weblate 在 Weblate 发生更改时将更改推送到仓库。 参见 持续本地化集成, 避免合并冲突 How to access repositories over SSH?0 码力 | 650 页 | 9.34 MB | 1 年前3
Weblate 4.2.2 用户文档from filesystem or it can be made available through Git exporter). Prior to this, you might want to commit any pending changes (see 惰性提 交). This can be achieved in the user interface (in the Repository maintenance) be automated by installing a webhook on your repository to trigger Weblate whenever there is a new commit, see 更新仓库 for more details. 参见: 持续本地化集成 1.7.2 Translating software using GNU Gettext GNU Gettext Weblate 中的Component configuration 配置中设置推送 URL,这使 Weblate 可以将更改推送到仓库。 3. 在 Weblate 中打开项目配置 配置上的 push-on-commit,这将使 Weblate 在 Weblate 发生更改时将更改 推送到仓库。 参见: 持续本地化集成, 避免合并冲突 How to access repositories over SSH0 码力 | 411 页 | 4.60 MB | 1 年前3
Weblate 4.2.1 用户文档from filesystem or it can be made available through Git exporter). Prior to this, you might want to commit any pending changes (see 惰性提交). This can be achieved in the user interface (in the Repository maintenance) be automated by installing a webhook on your repository to trigger Weblate whenever there is a new commit, see 更新仓库 for more details. 参见 持续本地化集成 Translating software using GNU Gettext GNU Gettext [https://www 中的 Component configuration 配置中设置推送 URL,这使 Weblate 可以将更改推送到仓库。 3. 在 Weblate 中打开 项目配置 配置上的 push-on-commit,这将使 Weblate 在 Weblate 发生更改时将更改推送到仓库。 参见 持续本地化集成, 避免合并冲突 How to access repositories over SSH?0 码力 | 650 页 | 9.34 MB | 1 年前3
Weblate 4.2.1 用户文档from filesystem or it can be made available through Git exporter). Prior to this, you might want to commit any pending changes (see 惰性提 交). This can be achieved in the user interface (in the Repository maintenance) be automated by installing a webhook on your repository to trigger Weblate whenever there is a new commit, see 更新仓库 for more details. 参见: 持续本地化集成 1.7.2 Translating software using GNU Gettext GNU Gettext Weblate 中的Component configuration 配置中设置推送 URL,这使 Weblate 可以将更改推送到仓库。 3. 在 Weblate 中打开项目配置 配置上的 push-on-commit,这将使 Weblate 在 Weblate 发生更改时将更改 推送到仓库。 参见: 持续本地化集成, 避免合并冲突 How to access repositories over SSH0 码力 | 411 页 | 4.60 MB | 1 年前3
Weblate 4.3 用户文档from filesystem or it can be made available through Git exporter). Prior to this, you might want to commit any pending changes (see 惰性提交). This can be achieved in the user interface (in the Repository maintenance) be automated by installing a webhook on your repository to trigger Weblate whenever there is a new commit, see 更新仓库 for more details. 参见 持续本地化集成 Translating software using GNU Gettext GNU Gettext [https://www 以获取有关如何执行此操作的信息。 2. 在 Weblate 中的 组件配置 配置中设置推送 URL,这使 Weblate 可以将 更改推送到仓库。 3. 在 Weblate 中打开 项目配置 配置上的 push-on-commit,这将使 Weblate 在 Weblate 发生更改时将更改推送到仓库。 参见 持续本地化集成, 避免合并冲突 How to access repositories over SSH?0 码力 | 667 页 | 9.36 MB | 1 年前3
Weblate 4.3 用户文档from filesystem or it can be made available through Git exporter). Prior to this, you might want to commit any pending changes (see 惰性提 交). This can be achieved in the user interface (in the Repository maintenance) be automated by installing a webhook on your repository to trigger Weblate whenever there is a new commit, see 更新仓库 for more details. 参见: 持续本地化集成 1.7.2 Translating software using GNU Gettext GNU Gettext 以获取有关如何执行此操作 的信息。 2. 在 Weblate 中的组件配置 配置中设置推送 URL,这使 Weblate 可以将更改推送到仓库。 3. 在 Weblate 中打开项目配置 配置上的 push-on-commit,这将使 Weblate 在 Weblate 发生更改时将更改 推送到仓库。 64 Chapter 1. User docs The Weblate Manual, 发布 4.3 参见:0 码力 | 419 页 | 4.74 MB | 1 年前3
共 402 条
- 1
- 2
- 3
- 4
- 5
- 6
- 41













