-
Notifications
You must be signed in to change notification settings - Fork 14.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: Add workflow diagram to working_with_remotes.md assignment. #29446
base: main
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -11,6 +11,19 @@ | |||||||
- Dangers of history-changing operations. | ||||||||
- Best practices of history-changing operations. | ||||||||
|
||||||||
### Workflow Diagram | ||||||||
|
||||||||
Here is a visual representation of the workflow with Git and GitHub and illustrates how changes flow between repositories during collaboration. | ||||||||
|
||||||||
<pre class="mermaid"> | ||||||||
Check failure on line 18 in git/intermediate_git/working_with_remotes.md
|
||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
graph TD; | ||||||||
A[Upstream Repository: TheOdinProject/curriculum] -->|git fetch upstream/main| B[Local Repository: main]; | ||||||||
B -->|git checkout your_branch_name| C[Local Repository: your_branch_name]; | ||||||||
C -->|git push origin your_branch_name| D[Your Fork on GitHub]; | ||||||||
D -->|Create Pull Request to Upstream| E[Pull Request on GitHub]; | ||||||||
E -->|Maintainers Merge PR to Upstream| A[Upstream Repository: TheOdinProject/curriculum]; | ||||||||
</pre> | ||||||||
Check failure on line 25 in git/intermediate_git/working_with_remotes.md
|
||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
|
||||||||
#### git push -\-force | ||||||||
|
||||||||
Let's say you're no longer working on a project all by yourself, but with someone else. You want to push a branch you've made changes on to a remote repository. Normally, Git will only let you push your changes if you've already updated your local branch with the latest commits from this remote. | ||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Heading needs to be sentence case