mirror of
https://github.com/LucasVbr/first-contributions.git
synced 2026-05-14 17:21:51 +00:00
134 lines
7.5 KiB
Markdown
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 āĻāĻŋāĻŽā§ āϝā§āĻ āĻĻāĻŋāύ
|
|
āĨ¤
|
|
|
|
āĻ
āϤāĻŋāϰāĻŋāĻā§āϤ āĻāĻĒāĻāϰāĻŖ
|
|
āĻ
āύā§āϝāĻžāύā§āϝ āĻā§āϞ āĻŦā§āϝāĻŦāĻšāĻžāϰ āĻāϰ⧠āĻāĻŋāĻāĻā§āϰāĻŋāϝāĻŧāĻžāϞ
|
|
|
|
āĻŽā§āϞ āĻĒāĻžāϤāĻžāϝāĻŧ āĻĢāĻŋāϰ⧠āϝāĻžāύ |