Files
2025-10-01 10:53:32 +05:30

134 lines
7.5 KiB
Markdown

<img align="right" width="150" src="https://firstcontributions.github.io/assets/gui-tool-tutorials/github-desktop-old-version-tutorial/join-slack-team.png">
āĻĒā§āϰāĻĨāĻŽ āĻ…āĻŦāĻĻāĻžāύ
<img alt="Git Bash" src="https://cdn.icon-icons.com/icons2/2699/PNG/512/git_scm_logo_icon_170096.png" width="200"> Git Bash āϏāĻ‚āĻ¸ā§āĻ•āϰāĻŖ
āĻĒā§āϰāĻĨāĻŽāĻŦāĻžāϰ āĻ•āĻŋāϛ⧁ āĻ•āϰāĻž āϏāĻŦāϏāĻŽāϝāĻŧāχ āĻ•āĻ āĻŋāύāĨ¤ āĻŦāĻŋāĻļ⧇āώ āĻ•āϰ⧇ āϝāĻ–āύ āφāĻĒāύāĻŋ āϟāĻŋāĻŽā§‡ āĻ•āĻžāϜ āĻ•āϰ⧇āύ, āϤāĻ–āύ āϭ⧁āϞ āĻ•āϰāĻžāϰ āĻ­āϝāĻŧ āĻĨ⧇āϕ⧇āχ āϝāĻžāϝāĻŧāĨ¤ āĻ•āĻŋāĻ¨ā§āϤ⧁ āĻ“āĻĒ⧇āύ āϏ⧋āĻ°ā§āϏ āĻŽāĻžāύ⧇āχ āϏāĻšāϝ⧋āĻ—āĻŋāϤāĻž āĻ“ āĻāĻ•āϏāĻžāĻĨ⧇ āĻ•āĻžāϜ āĻ•āϰāĻžāĨ¤
āφāĻŽāϰāĻž āύāϤ⧁āύ āĻ“āĻĒ⧇āύ āϏ⧋āĻ°ā§āϏ āĻ…āĻŦāĻĻāĻžāύāĻ•āĻžāϰ⧀āĻĻ⧇āϰ āĻļ⧇āĻ–āĻž āĻāĻŦāĻ‚ āϤāĻžāĻĻ⧇āϰ āĻĒā§āϰāĻĨāĻŽ āĻ…āĻŦāĻĻāĻžāύ āϰāĻžāĻ–āĻžāϰ āĻĒā§āϰāĻ•ā§āϰāĻŋāϝāĻŧāĻžāϕ⧇ āϏāĻšāϜ āĻ•āϰāϤ⧇ āϚāĻžāχāĨ¤ āφāĻ°ā§āϟāĻŋāϕ⧇āϞ āĻĒāĻĄāĻŧāĻž āĻŦāĻž āĻ­āĻŋāĻĄāĻŋāĻ“ āĻĻ⧇āĻ–āĻž āϏāĻšāĻžāϝāĻŧāĻ• āĻšāϤ⧇ āĻĒāĻžāϰ⧇, āϤāĻŦ⧇ āĻŦāĻžāĻ¸ā§āϤāĻŦ⧇ āĻĒā§āĻ°ā§āϝāĻžāĻ•āϟāĻŋāϏ āĻ•āϰāĻžāϰ āĻšā§‡āϝāĻŧ⧇ āĻ­āĻžāϞ⧋ āĻ•āĻŋāϛ⧁ āύ⧇āχāĨ¤
āĻāχ āĻĒā§āϰ⧋āĻœā§‡āĻ•ā§āĻŸā§‡āϰ āωāĻĻā§āĻĻ⧇āĻļā§āϝ āĻšāϞ⧋ āύāϤ⧁āύāĻĻ⧇āϰ āϜāĻ¨ā§āϝ āϏāĻšāϜāĻŦā§‹āĻ§ā§āϝ āĻ—āĻžāχāĻĄ āϤ⧈āϰāĻŋ āĻ•āϰāĻž āĻāĻŦāĻ‚ āϤāĻžāĻĻ⧇āϰ āĻĒā§āϰāĻĨāĻŽ āĻ…āĻŦāĻĻāĻžāύ āϰāĻžāĻ–āĻžāϰ āĻ…āĻ­āĻŋāĻœā§āĻžāϤāĻžāϕ⧇ āφāύāĻ¨ā§āĻĻāĻĻāĻžāϝāĻŧāĻ• āĻ•āϰ⧇ āϤ⧋āϞāĻžāĨ¤ āĻŽāύ⧇ āϰāĻžāĻ–āĻŦ⧇āύ: āφāĻĒāύāĻŋ āϝāϤ āĻļāĻžāĻ¨ā§āϤ āĻ“ āφāĻ¤ā§āĻŽāĻŦāĻŋāĻļā§āĻŦāĻžāϏ⧀ āĻĨāĻžāĻ•āĻŦ⧇āύ, āĻļ⧇āĻ–āĻžāĻ“ āϤāϤ āϏāĻšāϜ āĻšāĻŦ⧇āĨ¤
āϝāĻĻāĻŋ āφāĻĒāύāĻžāϰ Windows āĻŽā§‡āĻļāĻŋāύ⧇ Git Bash āύāĻž āĻĨāĻžāϕ⧇, āϤāĻŦ⧇ āĻāĻ–āĻžāύ āĻĨ⧇āϕ⧇ āχāĻ¨ā§āϏāϟāϞ āĻ•āϰ⧁āύ
āĨ¤
<img align="right" width="300" src="https://firstcontributions.github.io/assets/gui-tool-tutorials/github-desktop-tutorial/fork.png" alt="fork this repository" />
āϰāĻŋāĻĒā§‹āϜāĻŋāϟāϰāĻŋ Fork āĻ•āϰ⧁āύ
āĻāχ āĻĒ⧇āĻœā§‡āϰ āωāĻĒāϰ⧇āϰ āĻĄāĻžāύ āĻĻāĻŋāϕ⧇āϰ Fork āĻŦāĻžāϟāύ⧇ āĻ•ā§āϞāĻŋāĻ• āĻ•āϰ⧁āύāĨ¤
āĻāϤ⧇ āĻ•āϰ⧇ āφāĻĒāύāĻžāϰ āĻ…ā§āϝāĻžāĻ•āĻžāωāĻ¨ā§āĻŸā§‡ āϰāĻŋāĻĒā§‹āϜāĻŋāϟāϰāĻŋāϟāĻŋāϰ āĻāĻ•āϟāĻŋ āĻ•āĻĒāĻŋ āϤ⧈āϰāĻŋ āĻšāĻŦ⧇āĨ¤
āϰāĻŋāĻĒā§‹āϜāĻŋāϟāϰāĻŋ Clone āĻ•āϰ⧁āύ
āĻāĻ–āύ āφāĻĒāύāĻžāϰ āĻĢāĻ°ā§āĻ• āĻ•āϰāĻž āϰāĻŋāĻĒā§‹āϜāĻŋāϟāϰāĻŋāϕ⧇ āφāĻĒāύāĻžāϰ āĻ•āĻŽā§āĻĒāĻŋāωāϟāĻžāϰ⧇ āĻ•ā§āϞ⧋āύ āĻ•āϰ⧁āύāĨ¤
âš ī¸ āϗ⧁āϰ⧁āĻ¤ā§āĻŦāĻĒā§‚āĻ°ā§āĻŖ: āĻŽā§‚āϞ āϰāĻŋāĻĒā§‹āϜāĻŋāϟāϰāĻŋ āĻ•ā§āϞ⧋āύ āĻ•āϰāĻŦ⧇āύ āύāĻžāĨ¤ āύāĻŋāĻœā§‡āϰ āĻĢā§‹āĻ°ā§āĻ• āĻĨ⧇āϕ⧇ āĻ•ā§āϞ⧋āύ āĻ•āϰāϤ⧇ āĻšāĻŦ⧇āĨ¤
ā§§. "Code" āĻŦāĻžāϟāύ⧇ āĻ•ā§āϞāĻŋāĻ• āĻ•āϰ⧁āύ āĻāĻŦāĻ‚ āϞāĻŋāĻ™ā§āĻ• āĻ•āĻĒāĻŋ āĻ•āϰ⧁āύāĨ¤
<img src="https://firstcontributions.github.io/assets/cli-tool-tutorials/git-bash-windows-tutorial/gb-clone-1.png" alt="copy string" />
⧍. Git Bash āĻ“āĻĒ⧇āύ āĻ•āϰ⧁āύāĨ¤ āωāχāĻ¨ā§āĻĄā§‹āĻœā§‡ āĻāϟāĻŋ āύāĻŋāĻšā§‡āϰ āĻ›āĻŦāĻŋāϰ āĻŽāϤ⧋ āĻĻ⧇āĻ–āĻžāĻŦ⧇:
<img src="https://firstcontributions.github.io/assets/cli-tool-tutorials/git-bash-windows-tutorial/gb-terminal-1.png" alt="open git bash terminal" />
ā§Š. āĻĒā§āϰ⧋āĻœā§‡āĻ•ā§āϟ āϰāĻžāĻ–āĻžāϰ āĻĢā§‹āĻ˛ā§āĻĄāĻžāϰ⧇ āϝāĻžāύ:
cd <folder>
<img src="https://firstcontributions.github.io/assets/cli-tool-tutorials/git-bash-windows-tutorial/gb-terminal-2.png" alt="cd into a folder" />
ā§Ē. āĻāĻ–āύ āĻ•āĻĒāĻŋ āĻ•āϰāĻž āϞāĻŋāĻ™ā§āĻ• āĻĻāĻŋāϝāĻŧ⧇ āĻ•ā§āϞ⧋āύ āĻ•āϰ⧁āύ:
git clone <repo-url>
<img src="https://firstcontributions.github.io/assets/cli-tool-tutorials/git-bash-windows-tutorial/gb-clone-2.png" alt="clone the repository" />
ā§Ģ. āĻ•ā§āϞ⧋āύ āĻ•āϰāĻž āĻĄāĻŋāϰ⧇āĻ•ā§āϟāϰāĻŋāϤ⧇ āϝāĻžāύ āĻāĻŦāĻ‚ VS Code āĻ āĻ“āĻĒ⧇āύ āĻ•āϰ⧁āύ:
<img src="https://firstcontributions.github.io/assets/cli-tool-tutorials/git-bash-windows-tutorial/gb-terminal-3.png" alt="cd into the newly cloned repo" />
āĻāĻ•āϟāĻŋ Branch āϤ⧈āϰāĻŋ āĻ•āϰ⧁āύ
āύāϤ⧁āύ āĻŦā§āϰāĻžāĻžā§āϚ āϤ⧈āϰāĻŋ āĻ•āϰ⧁āύ āĻāĻŦāĻ‚ āϏ⧇āχ āĻŦā§āϰāĻžāĻžā§āĻšā§‡ āϏ⧁āχāϚ āĻ•āϰ⧁āύ:
git checkout -b <branch-name>
👉 āύāĻžāĻŽ āĻĻāĻŋāύ <add-your-name> āĻĢāϰāĻŽā§āϝāĻžāĻŸā§‡āĨ¤ āϝ⧇āĻŽāύ:
add-james-smith
<img src="https://firstcontributions.github.io/assets/cli-tool-tutorials/git-bash-windows-tutorial/gb-branch.png" alt="create a branch" />
āĻĒāϰāĻŋāĻŦāĻ°ā§āϤāύ āĻ•āϰ⧁āύ āĻāĻŦāĻ‚ Commit āĻ•āϰ⧁āύ
ā§§. Contributors.md āĻĢāĻžāχāϞ āĻ“āĻĒ⧇āύ āĻ•āϰ⧁āύāĨ¤
⧍. āύāĻŋāĻšā§‡ āĻ¸ā§āĻ•ā§āϰāϞ āĻ•āϰ⧇ āύāĻŋāĻœā§‡āϰ āύāĻžāĻŽ āϝ⧋āĻ— āĻ•āϰ⧁āύāĨ¤
ā§Š. āĻĢāĻžāχāϞ āϏ⧇āĻ­ āĻ•āϰ⧁āύāĨ¤
āωāĻĻāĻžāĻšāϰāĻŖ:
[James Smith](https://github.com/jamessmith)
āĻĒāϰāĻŋāĻŦāĻ°ā§āϤāύ āĻšā§‡āĻ• āĻ•āϰāϤ⧇:
git status
<img src="https://firstcontributions.github.io/assets/cli-tool-tutorials/git-bash-windows-tutorial/gb-status.png" alt="check the status" />
āĻĒāϰāĻŋāĻŦāĻ°ā§āϤāύ āĻ¸ā§āĻŸā§‡āϜ āĻ•āϰ⧁āύ:
git add file-name
āĻ•āĻŽāĻŋāϟ āĻ•āϰ⧁āύ:
git commit -m "Add your-name to Contributors list"
👉 āĻāĻ–āĻžāύ⧇ <your-name> āĻāϰ āϜāĻžāϝāĻŧāĻ—āĻžāϝāĻŧ āύāĻŋāĻœā§‡āϰ āύāĻžāĻŽ āϞāĻŋāϖ⧁āύāĨ¤
<img src="https://firstcontributions.github.io/assets/cli-tool-tutorials/git-bash-windows-tutorial/gb-commit.png" alt="commit changes" />
āĻ•āĻŽāĻŋāϟ āϞāĻŋāĻ¸ā§āϟ āĻšā§‡āĻ• āĻ•āϰāϤ⧇:
git log --oneline
GitHub āĻ Push āĻ•āϰ⧁āύ
āϏāĻŦ āϧāĻžāĻĒ āĻļ⧇āώ āĻšāϞ⧇ āĻĒāϰāĻŋāĻŦāĻ°ā§āϤāύāϗ⧁āϞ⧋ GitHub āĻ āĻĒāĻžāĻ āĻžāύ:
git push origin <branch-name>
<img src="https://firstcontributions.github.io/assets/cli-tool-tutorials/git-bash-windows-tutorial/gb-push.png" alt="push changes" />
Pull Request āĻĒāĻžāĻ āĻžāύ
GitHub āĻ āφāĻĒāύāĻžāϰ āϰāĻŋāĻĒā§‹āϜāĻŋāϟāϰāĻŋāϤ⧇ āĻ—āĻŋāϝāĻŧ⧇ Compare & pull request āĻŦāĻžāϟāύ⧇ āĻ•ā§āϞāĻŋāĻ• āĻ•āϰ⧁āύāĨ¤
<img src="https://firstcontributions.github.io/assets/gui-tool-tutorials/github-desktop-tutorial/compare-and-pull.png" alt="create a pull request" />
āĻāϰāĻĒāϰ Pull Request āϏāĻžāĻŦāĻŽāĻŋāϟ āĻ•āϰ⧁āύāĨ¤
<img src="https://firstcontributions.github.io/assets/gui-tool-tutorials/github-desktop-tutorial/submit-pull-request.png" alt="submit pull request" />
āĻļā§€āĻ˜ā§āϰāχ āφāĻĒāύāĻžāϰ āĻĒāϰāĻŋāĻŦāĻ°ā§āϤāύāϗ⧁āϞ⧋ āĻŽā§‚āϞ āĻĒā§āϰ⧋āĻœā§‡āĻ•ā§āĻŸā§‡āϰ āĻĒā§āϰāϧāĻžāύ (main/master) āĻŦā§āϰāĻžāĻžā§āĻšā§‡ āĻŽāĻžāĻ°ā§āϜ āĻšāϝāĻŧ⧇ āϝāĻžāĻŦ⧇āĨ¤ āĻĒāϰāĻŋāĻŦāĻ°ā§āϤāύ āĻŽāĻžāĻ°ā§āϜ āĻšāϞ⧇ āχāĻŽā§‡āχāϞ⧇ āύ⧋āϟāĻŋāĻĢāĻŋāϕ⧇āĻļāύ āĻĒāĻžāĻŦ⧇āύāĨ¤
āĻāϰāĻĒāϰ āϕ⧀ āĻ•āϰāĻŦ⧇āύ?
āĻ…āĻ­āĻŋāύāĻ¨ā§āĻĻāύ 🎉 āφāĻĒāύāĻŋ āĻāĻ–āύāχ āĻĒ⧁āϰ⧋ āĻ¸ā§āĻŸā§āϝāĻžāĻ¨ā§āĻĄāĻžāĻ°ā§āĻĄ āĻĒā§āϰāĻ•ā§āϰāĻŋāϝāĻŧāĻž āĻļ⧇āώ āĻ•āϰāϞ⧇āύ: fork → clone → edit → PR
👉 āφāĻĒāύāĻžāϰ āĻ…āĻŦāĻĻāĻžāύ āωāĻĻāϝāĻžāĻĒāύ āĻ•āϰ⧁āύ āĻāĻŦāĻ‚ āĻ“āϝāĻŧ⧇āĻŦ āĻ…ā§āϝāĻžāĻĒ
āĻĨ⧇āϕ⧇ āĻŦāĻ¨ā§āϧ⧁āĻĻ⧇āϰ āϏāĻžāĻĨ⧇ āĻļ⧇āϝāĻŧāĻžāϰ āĻ•āϰ⧁āύāĨ¤
👉 āϝāĻĻāĻŋ āϕ⧋āύ⧋ āĻĒā§āϰāĻļā§āύ āĻĨāĻžāϕ⧇ āĻŦāĻž āϏāĻžāĻšāĻžāĻ¯ā§āϝ āĻĒā§āϰāϝāĻŧā§‹āϜāύ āĻšāϝāĻŧ, āφāĻŽāĻžāĻĻ⧇āϰ Slack āϟāĻŋāĻŽā§‡ āϝ⧋āĻ— āĻĻāĻŋāύ: Slack āϟāĻŋāĻŽā§‡ āϝ⧋āĻ— āĻĻāĻŋāύ
āĨ¤
āĻ…āϤāĻŋāϰāĻŋāĻ•ā§āϤ āωāĻĒāĻ•āϰāĻŖ
āĻ…āĻ¨ā§āϝāĻžāĻ¨ā§āϝ āϟ⧁āϞ āĻŦā§āϝāĻŦāĻšāĻžāϰ āĻ•āϰ⧇ āϟāĻŋāωāĻŸā§‹āϰāĻŋāϝāĻŧāĻžāϞ
āĻŽā§‚āϞ āĻĒāĻžāϤāĻžāϝāĻŧ āĻĢāĻŋāϰ⧇ āϝāĻžāύ