You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: TRANSLATING.md
+5-14
Original file line number
Diff line number
Diff line change
@@ -72,22 +72,13 @@ On https://git-scm.com, the translations are divided into three categories. Once
72
72
| Partial translations available in | up to chapter 6 has been translated. |
73
73
| Full translation available in |the book is (almost) fully translated. |
74
74
75
-
## Continuous integration with Travis CI
75
+
## Continuous integration with GitHub Actions
76
76
77
-
Travis CI is a [continuous integration](https://en.wikipedia.org/wiki/Continuous_integration) service that integrates with GitHub. Travis CI is used to ensure that a pull-request doesn't break the build or compilation. Travis CI can also provide compiled versions of the book.
77
+
GitHub Actions is a [continuous integration](https://en.wikipedia.org/wiki/Continuous_integration) service that integrates with GitHub. GitHub Actions is used to ensure that a pull-request doesn't break the build or compilation. GitHub Actions can also provide compiled versions of the book.
78
78
79
-
Setting up Travis CI requires administrative control over the repository.
80
-
81
-
### Registering for Travis continuous integration
82
-
83
-
1. Register a Travis account [here](https://travis-ci.org/).
84
-
1. Register your project in Travis.
85
-
Please refer to the [Travis documentation](https://docs.travis-ci.com/) for more information.
86
-
87
-
### Setting up your repository for continuous integration
88
-
89
-
Travis CI works by scanning your project's root directory for a file named `.travis.yml` and following the 'recipe' that it contains. The good news is: there's already a working `.travis.yml` file in the Pro Git 2 source [here](https://raw.githubusercontent.com/progit/progit2-pub/master/travis.yml).
90
-
Copy that file, and put it in your working directory. Commit the .yml file and push it to your translation repository; that should fire up a compilation and a check of the book's contents.
79
+
The configuration for GitHub Actions is contained in the `.github/workflows` directory, and if you bring in the `master` branch of the root repository you'll get them for free.
80
+
However, if you created your translation repo by _forking_ the root repo, there's an extra step you must complete (if you did not fork, you can skip this part).
81
+
GitHub assumes that forks will be used to contribute to the repo from which they were forked, so you'll have to visit the "Actions" tab on your forked repo, and click the "I understand my workflows" button to allow the actions to run.
Copy file name to clipboardexpand all lines: book/10-git-internals/sections/objects.asc
+1-1
Original file line number
Diff line number
Diff line change
@@ -126,7 +126,7 @@ The next type of Git object we'll examine is the _tree_, which solves the proble
126
126
Git stores content in a manner similar to a UNIX filesystem, but a bit simplified.
127
127
All the content is stored as tree and blob objects, with trees corresponding to UNIX directory entries and blobs corresponding more or less to inodes or file contents.
128
128
A single tree object contains one or more entries, each of which is the SHA-1 hash of a blob or subtree with its associated mode, type, and filename.
129
-
For example, the most recent tree in a project may look something like this:
129
+
For example, let's say you have a project where the most-recent tree looks something like:
Starting with Visual Studio 2013 Update 1, Visual Studio users have a Git client built directly into their IDE.
5
-
Visual Studio has had source-control integration features for quite some time, but they were oriented towards centralized, file-locking systems, and Git was not a good match for this workflow.
6
-
Visual Studio 2013's Git support has been separated from this older feature, and the result is a much better fit between Studio and Git.
4
+
Visual Studio has Git tooling built directly into the IDE, starting with Visual Studio 2019 version 16.8.
7
5
8
-
To locate the feature, open a project that's controlled by Git (or just `git init` an existing project), and select View > Team Explorer from the menu.
9
-
You'll see the "Connect" view, which looks a bit like this:
6
+
The tooling supports the following Git functionality:
10
7
11
-
.Connecting to a Git repository from Team Explorer
12
-
image::images/vs-1.png[Connecting to a Git repository from Team Explorer]
8
+
* Create or clone a repository.
9
+
* Open and browse history of a repository.
10
+
* Create and checkout branches and tags.
11
+
* Stash, stage, and commit changes.
12
+
* Fetch, pull, push, or sync commits.
13
+
* Merge and rebase branches.
14
+
* Resolve merge conflicts.
15
+
* View diffs.
16
+
* ... and more!
13
17
14
-
Visual Studio remembers all of the projects you've opened that are Git-controlled, and they're available in the list at the bottom.
15
-
If you don't see the one you want there, click the "Add" link and type in the path to the working directory.
16
-
Double clicking on one of the local Git repositories leads you to the Home view, which looks like <<vs_home>>.
17
-
This is a hub for performing Git actions; when you're _writing_ code, you'll probably spend most of your time in the "Changes" view, but when it comes time to pull down changes made by your teammates, you'll use the "Unsynced Commits" and "Branches" views.
18
+
Read the https://docs.microsoft.com/visualstudio/version-control[official documentation^] to learn more.
18
19
19
-
[[vs_home]]
20
-
.The "Home" view for a Git repository in Visual Studio
21
-
image::images/vs-2.png[The “Home” view for a Git repository in Visual Studio]
22
-
23
-
Visual Studio now has a powerful task-focused UI for Git.
24
-
It includes a linear history view, a diff viewer, remote commands, and many other capabilities.
25
-
For more on using Git within Visual Studio go to: https://docs.microsoft.com/en-us/azure/devops/repos/git/command-prompt?view=azure-devops[].
0 commit comments