Skip to content
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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions git/intermediate_git/working_with_remotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,19 @@
- Dangers of history-changing operations.
- Best practices of history-changing operations.

### Workflow Diagram
Copy link
Contributor

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

Suggested change
### Workflow Diagram
### 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

View workflow job for this annotation

GitHub Actions / Lint lesson files

Multiline HTML tags should be surrounded by blank lines or code block delimiters

git/intermediate_git/working_with_remotes.md:18 TOP005/blanks-around-multiline-html-tags Multiline HTML tags should be surrounded by blank lines or code block delimiters [Expected a blank line or a code block delimiter (```) after the tag] [Context: "<pre class="mermaid">"] https://github.com/TheOdinProject/curriculum/blob/main/markdownlint/docs/TOP005.md
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<pre class="mermaid">
<pre class="mermaid">

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

View workflow job for this annotation

GitHub Actions / Lint lesson files

Multiline HTML tags should be surrounded by blank lines or code block delimiters

git/intermediate_git/working_with_remotes.md:25 TOP005/blanks-around-multiline-html-tags Multiline HTML tags should be surrounded by blank lines or code block delimiters [Expected a blank line or a code block delimiter (```) before the tag] [Context: "</pre>"] https://github.com/TheOdinProject/curriculum/blob/main/markdownlint/docs/TOP005.md
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
</pre>
</pre>


#### 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.
Expand Down
Loading