-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Feature update #497
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
Feature update #497
Changes from all 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 |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Hello, This is a week 4 Git Challenge !!! |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,30 @@ | ||||||||||||||||||||||||||||||||||||||
| # Solution to Git Basic Tasks | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| ### Commands that I used: | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||||||||||||
| git init → Initializes a repo in my local | ||||||||||||||||||||||||||||||||||||||
| git add info.txt → Stages a file to that repo | ||||||||||||||||||||||||||||||||||||||
| git commit -m "Message" → Final commit | ||||||||||||||||||||||||||||||||||||||
| git push -u origin main → Push commit to remote | ||||||||||||||||||||||||||||||||||||||
| git pull origin main → Verify/pull changes | ||||||||||||||||||||||||||||||||||||||
| git log → View commit history | ||||||||||||||||||||||||||||||||||||||
| git branch feature-update → Creates new branch | ||||||||||||||||||||||||||||||||||||||
| git switch <branch name> → Switching branches | ||||||||||||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| --- | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| ### Brief explanation on why branching strategies are important in collaborative development: | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+3
to
+19
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. Fix heading hierarchy to avoid lint errors. Line 3 jumps from As per static analysis hints, apply: -### Commands that I used:
+## Commands that I used:
-### Brief explanation on why branching strategies are important in collaborative development:
+## Brief explanation on why branching strategies are important in collaborative development:📝 Committable suggestion
Suggested change
🧰 Tools🪛 markdownlint-cli2 (0.18.1)3-3: Heading levels should only increment by one level at a time (MD001, heading-increment) 5-5: Fenced code blocks should have a language specified (MD040, fenced-code-language) 🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||
| - **Isolating features and bug fixes** | ||||||||||||||||||||||||||||||||||||||
| Creating a new branch rather than working on main/master helps avoid downtime for end users, allowing developers to work in a solo environment and pull changes after staging/testing. | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| - **Facilitating parallel development** | ||||||||||||||||||||||||||||||||||||||
| Allows multiple developers to write code on different features and collaborate efficiently. | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| - **Reducing merge conflicts** | ||||||||||||||||||||||||||||||||||||||
| Prevents conflicts when each developer works in a specified branch. | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| - **Enabling effective code reviews** | ||||||||||||||||||||||||||||||||||||||
| Makes it easier to review new features, updates, or commits before merging. | ||||||||||||||||||||||||||||||||||||||
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.
Add a language hint to the fenced block.
The command list lacks a fence language, tripping MD040. Annotate it (e.g.,
bash) so tooling renders it properly.As per static analysis hints, apply:
In 2025/git/01_Git_and_Github_Basics/week4-challenge/solution.md lines 5-14, the
fenced code block lacks a language hint causing MD040; add a language identifier
(e.g., bash) immediately after the opening
so the block starts withbashand keep the existing content and closing ``` unchanged.