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: book/06-github/sections/2-contributing.asc
+60Lines changed: 60 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,7 @@ Here's how it generally works:
43
43
5. Open a Pull Request on GitHub.
44
44
6. Discuss, and optionally continue committing.
45
45
7. The project owner merges or closes the Pull Request.
46
+
8. Put the changes back in your GitHub public repository.
46
47
47
48
This is basically the Integration Manager workflow covered in <<ch05-distributed-git#_integration_manager>>, but instead of using email to communicate and review changes, teams use GitHub's web based tools.
48
49
@@ -417,3 +418,62 @@ This isn't technically GitHub Flavored Markdown, but it is incredibly useful. In
417
418
image::images/markdown-08-drag-drop.png[Drag and drop images]
418
419
419
420
If you look at <<_md_drag>>, you can see a small ``Parsed as Markdown'' hint above the text area. Clicking on that will give you a full cheat sheet of everything you can do with Markdown on GitHub.
421
+
422
+
[[_fetch_and_push_on_different_repositories]]
423
+
==== Keep your GitHub public repository up-to-date
424
+
425
+
Once you forked from a GitHub repository, your forked repository lives alone and is autonomous regarding the original one.
426
+
In particular, when the original repository has new commits, GitHub informs you by a message like:
427
+
[source,text]
428
+
----
429
+
This branch is X commits behind <organization>:master.
430
+
----
431
+
For example:
432
+
[source,text]
433
+
----
434
+
This branch is 5 commits behind progit:master.
435
+
----
436
+
437
+
But your GitHub repository will never be automatically updated by GitHub; this is something that you must do yourself.
438
+
Fortunately, this is very easy to do.
439
+
440
+
One possibility to do this requires no configuration.
441
+
For example, if you forked from `https://github.com/progit/progit2.git`, you can keep your `master` branch up-to-date like this:
0 commit comments