About Git Hub
22 بار بازدید -
2 هفته پیش
-
Some Tips and Git Hub
Some Tips and Git Hub Commands
Step 1: Clone the Repository
If you haven't already cloned your friend's repository, you need to do that first.
Open your terminal or command prompt and run:
git clone {Github Project Link Here}
Step 2: Navigate to the Repository Directory
Navigate to the directory of the cloned repository:
cd {Folder Name}
Step 3: Create a New Branch
Create and switch to a new branch where you will make your changes:
ගි් හබ් එගේ අලුත් අමතර බ්රාන්් එකේ හෙන්න (ගවබ් එගකන්) හෙ ා හ ගකෝඩ්
ෆග ෝ කරන්න.
git checkout -b {Branch Name} (ගමගකන් ගවන්ගන් හෙපු බ්රාන්් එකට ස්වි්
ගවනවා.)
Step 4: Make Your Changes
Make the changes to the project files as needed.
ෙැන් ඔයා ගරාගෙේ් එක කර ා ගමානා හරි ගවනස්ව කම් උනාට ස්වගස්ව , ඒවා රිග ෝ
එකට ොෙන්න එ ැයි. ඒක කරන්ගන් ගමගහම...
Step 5: Stage the Changes
Add the changes to the staging area:
git add .
Step 6: Commit the Changes
Commit the changes with a descriptive message:
git commit -m "Your commit message"
Step 7: Pull the Latest Changes from the Remote Repository
Before pushing your changes, pull the latest changes from the remote repository
to ensure your branch is up to date:
git pull origin {Branch Name}
If there are merge conflicts, resolve them, stage the resolved files, and commit the resolution.
Step 8: Push Your Changes to the Remote Repository
Push your changes to the remote repository:
git push --set-upstream origin {Branch Name} or
git push -u {Branch Name}
Step 1: Clone the Repository
If you haven't already cloned your friend's repository, you need to do that first.
Open your terminal or command prompt and run:
git clone {Github Project Link Here}
Step 2: Navigate to the Repository Directory
Navigate to the directory of the cloned repository:
cd {Folder Name}
Step 3: Create a New Branch
Create and switch to a new branch where you will make your changes:
ගි් හබ් එගේ අලුත් අමතර බ්රාන්් එකේ හෙන්න (ගවබ් එගකන්) හෙ ා හ ගකෝඩ්
ෆග ෝ කරන්න.
git checkout -b {Branch Name} (ගමගකන් ගවන්ගන් හෙපු බ්රාන්් එකට ස්වි්
ගවනවා.)
Step 4: Make Your Changes
Make the changes to the project files as needed.
ෙැන් ඔයා ගරාගෙේ් එක කර ා ගමානා හරි ගවනස්ව කම් උනාට ස්වගස්ව , ඒවා රිග ෝ
එකට ොෙන්න එ ැයි. ඒක කරන්ගන් ගමගහම...
Step 5: Stage the Changes
Add the changes to the staging area:
git add .
Step 6: Commit the Changes
Commit the changes with a descriptive message:
git commit -m "Your commit message"
Step 7: Pull the Latest Changes from the Remote Repository
Before pushing your changes, pull the latest changes from the remote repository
to ensure your branch is up to date:
git pull origin {Branch Name}
If there are merge conflicts, resolve them, stage the resolved files, and commit the resolution.
Step 8: Push Your Changes to the Remote Repository
Push your changes to the remote repository:
git push --set-upstream origin {Branch Name} or
git push -u {Branch Name}
2 هفته پیش
در تاریخ 1403/04/12 منتشر شده
است.
22
بـار بازدید شده