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
This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. To view a copy of this license, visit https://creativecommons.org/licenses/by-nc-sa/3.0 or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.
1
+
This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
2
+
To view a copy of this license, visit https://creativecommons.org/licenses/by-nc-sa/3.0 or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.
Copy file name to clipboardExpand all lines: book/02-git-basics/sections/tagging.asc
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -280,7 +280,8 @@ Previous HEAD position was 99ada87... Merge pull request #89 from schacon/append
280
280
HEAD is now at df3f601... add atlas.json and cover image
281
281
----
282
282
283
-
In ``detached HEAD'' state, if you make changes and then create a commit, the tag will stay the same, but your new commit won't belong to any branch and will be unreachable, except by the exact commit hash. Thus, if you need to make changes -- say you're fixing a bug on an older version, for instance -- you will generally want to create a branch:
283
+
In ``detached HEAD'' state, if you make changes and then create a commit, the tag will stay the same, but your new commit won't belong to any branch and will be unreachable, except by the exact commit hash.
284
+
Thus, if you need to make changes -- say you're fixing a bug on an older version, for instance -- you will generally want to create a branch:
Copy file name to clipboardExpand all lines: book/03-git-branching/sections/remote-branches.asc
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -146,7 +146,8 @@ Branch serverfix set up to track remote branch serverfix from origin.
146
146
Switched to a new branch 'serverfix'
147
147
----
148
148
149
-
In fact, this is so common that there's even a shortcut for that shortcut. If the branch name you're trying to checkout (a) doesn't exist and (b) exactly matches a name on only one remote, Git will create a tracking branch for you:
149
+
In fact, this is so common that there's even a shortcut for that shortcut.
150
+
If the branch name you're trying to checkout (a) doesn't exist and (b) exactly matches a name on only one remote, Git will create a tracking branch for you:
Copy file name to clipboardExpand all lines: book/05-distributed-git/sections/maintaining.asc
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -363,7 +363,8 @@ image::images/large-merges-2.png[Merging contributed topic branches into long-te
363
363
When a topic branch has finally been merged into `master`, it's removed from the repository.
364
364
The Git project also has a `maint` branch that is forked off from the last release to provide backported patches in case a maintenance release is required.
365
365
Thus, when you clone the Git repository, you have four branches that you can check out to evaluate the project in different stages of development, depending on how cutting edge you want to be or how you want to contribute; and the maintainer has a structured workflow to help them vet new contributions.
366
-
The Git project's workflow is specialized. To clearly understand this you could check out the https://github.com/git/git/blob/master/Documentation/howto/maintain-git.txt[Git Maintainer's guide].
366
+
The Git project's workflow is specialized.
367
+
To clearly understand this you could check out the https://github.com/git/git/blob/master/Documentation/howto/maintain-git.txt[Git Maintainer's guide].
On Windows in `cmd.exe`, `^` is a special character and needs to be treated differently. You can either double it or put the commit reference in quotes:
219
+
On Windows in `cmd.exe`, `^` is a special character and needs to be treated differently.
220
+
You can either double it or put the commit reference in quotes:
Copy file name to clipboardExpand all lines: book/07-git-tools/sections/submodules.asc
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -682,7 +682,9 @@ CONFLICT (submodule): Merge conflict in DbConnector
682
682
Automatic merge failed; fix conflicts and then commit the result.
683
683
----
684
684
685
-
What it's suggesting that you do is to update the index like you had run `git add`, which clears the conflict, then commit. You probably shouldn't do this though. You can just as easily go into the submodule directory, see what the difference is, fast-forward to this commit, test it properly, and then commit it.
685
+
The suggested command Git is providing will update the index as though you had run `git add` (which clears the conflict), then commit.
686
+
You probably shouldn't do this though.
687
+
You can just as easily go into the submodule directory, see what the difference is, fast-forward to this commit, test it properly, and then commit it.
Copy file name to clipboardExpand all lines: book/A-git-in-other-environments/sections/powershell.asc
+8-3Lines changed: 8 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,9 @@ image::images/posh-git.png[PowerShell with Posh-git.]
13
13
14
14
==== Installation
15
15
===== Prerequisites (Windows only)
16
-
Before you're able to run PowerShell scripts on your machine, you need to set your local ExecutionPolicy to RemoteSigned (Basically anything except Undefined and Restricted). If you choose AllSigned instead of RemoteSigned, also local scripts (your own) need to be digitally signed in order to be executed. With RemoteSigned, only Scripts having the "ZoneIdentifier" set to Internet (were downloaded from the web) need to be signed, others not.
16
+
Before you're able to run PowerShell scripts on your machine, you need to set your local ExecutionPolicy to RemoteSigned (Basically anything except Undefined and Restricted).
17
+
If you choose AllSigned instead of RemoteSigned, also local scripts (your own) need to be digitally signed in order to be executed.
18
+
With RemoteSigned, only Scripts having the "ZoneIdentifier" set to Internet (were downloaded from the web) need to be signed, others not.
17
19
If you're an administrator and want to set it for all Users on that machine, use "-Scope LocalMachine".
18
20
If you're a normal user, without administrative rights, you can use "-Scope CurrentUser" to set it only for you.
19
21
@@ -47,8 +49,11 @@ Then you can go back and try again.
47
49
This happens, because the modules that ship with Windows PowerShell are signed with a different publishment certificate.
48
50
49
51
===== Update PowerShell Prompt
50
-
To include git information in your prompt, the posh-git module needs to be imported. To have posh-git imported every time PowerShell starts, execute the Add-PoshGitToProfile command which will add the import statement into you $profile script. This script is executed everytime you open a new PowerShell console.
51
-
Keep in mind, that there are multiple $profile scripts. E. g. one for the console and a separate one for the ISE.
52
+
To include git information in your prompt, the posh-git module needs to be imported.
53
+
To have posh-git imported every time PowerShell starts, execute the Add-PoshGitToProfile command which will add the import statement into you $profile script.
54
+
This script is executed everytime you open a new PowerShell console.
55
+
Keep in mind, that there are multiple $profile scripts.
56
+
E. g. one for the console and a separate one for the ISE.
0 commit comments