forked from progit/progit2-zh
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change name of chapters to adapt to git-scm scripts
- Loading branch information
Showing
52 changed files
with
231 additions
and
231 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
_git_in_other_environments.asc → A-git-in-other-environments.asc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[[_git_in_other_environments]] | ||
[[A-git-in-other-environments]] | ||
[appendix] | ||
== Git in Other Environments | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
_embedding_git_in_your_applications.asc → B-embedding-git-in-your-applications.asc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,7 +67,7 @@ origin [email protected]:mojombo/grit.git (push) | |
This means we can pull contributions from any of these users pretty easily. | ||
We may additionally have permission to push to one or more of these, though we can't tell that here. | ||
|
||
Notice that these remotes use a variety of protocols; we'll cover more about this in <<_git_on_the_server#_getting_git_on_a_server>>. | ||
Notice that these remotes use a variety of protocols; we'll cover more about this in <<ch04-git-on-the-server#_getting_git_on_a_server>>. | ||
|
||
==== Adding Remote Repositories | ||
|
||
|
@@ -103,7 +103,7 @@ From https://github.com/paulboone/ticgit | |
---- | ||
|
||
Paul's master branch is now accessible locally as `pb/master` -- you can merge it into one of your branches, or you can check out a local branch at that point if you want to inspect it. | ||
(We'll go over what branches are and how to use them in much more detail in <<_git_branching#_git_branching>>.) | ||
(We'll go over what branches are and how to use them in much more detail in <<ch03-git-branching#ch03-git-branching>>.) | ||
|
||
[[_fetching_and_pulling]] | ||
==== Fetching and Pulling from Your Remotes | ||
|
@@ -123,7 +123,7 @@ So, `git fetch origin` fetches any new work that has been pushed to that server | |
It's important to note that the `git fetch` command only downloads the data to your local repository -- it doesn't automatically merge it with any of your work or modify what you're currently working on. | ||
You have to merge it manually into your work when you're ready. | ||
|
||
If your current branch is set up to track a remote branch (see the next section and <<_git_branching#_git_branching>> for more information), you can use the `git pull` command to automatically fetch and then merge that remote branch into your current branch.(((git commands, pull))) | ||
If your current branch is set up to track a remote branch (see the next section and <<ch03-git-branching#ch03-git-branching>> for more information), you can use the `git pull` command to automatically fetch and then merge that remote branch into your current branch.(((git commands, pull))) | ||
This may be an easier or more comfortable workflow for you; and by default, the `git clone` command automatically sets up your local master branch to track the remote master branch (or whatever the default branch is called) on the server you cloned from. | ||
Running `git pull` generally fetches data from the server you originally cloned from and automatically tries to merge it into the code you're currently working on. | ||
|
||
|
@@ -142,7 +142,7 @@ $ git push origin master | |
This command works only if you cloned from a server to which you have write access and if nobody has pushed in the meantime. | ||
If you and someone else clone at the same time and they push upstream and then you push upstream, your push will rightly be rejected. | ||
You'll have to fetch their work first and incorporate it into yours before you'll be allowed to push. | ||
See <<_git_branching#_git_branching>> for more detailed information on how to push to remote servers. | ||
See <<ch03-git-branching#ch03-git-branching>> for more detailed information on how to push to remote servers. | ||
|
||
[[_inspecting_remote]] | ||
==== Inspecting a Remote | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.