Git and GitHub guide.docx
Git and GitHub guide.docx
iv. After downloading, Run the installer and follow the default settings.
v. After installation, open the command prompt and type git --version to verify the
installation.
Step 2: Sign Up
Click on the "Sign up" button, usually located in the top-right corner of the homepage.
Email Address:
Click "Continue".
Create a Password:
Click "Continue".
Choose a Username:
Click "Continue".
Verification:
You may be asked to complete a puzzle to verify you are not a robot.
Follow the instructions and click "Verify".
GitHub offers a free plan and paid plans with additional features.
Choose the "Free" plan unless you need the additional features.
Click "Continue".
GitHub may ask you a few questions to personalize your experience (e.g., about your
coding experience).
Open the email and click on the "Verify email address" button.
You can now start creating repositories, collaborating with others, and exploring projects.
Step 2: Clone the GitHub repository into local repository through visual studio code IDE
Step 4: git status, you can use git status to get the status of the files
git status
Step 5: git add, in order to trace the changes that do in the file.
git add .
Step 6: commit the changes
Step 7: Push the change we do in the visual studio code to GitHub repository
This assumes "M" is a status indicator in Git or another tool, showing that a file has been
modified.
Step 9: In order to update the changes, need to follow the steps 5,6, and 7.
Step 10: If needed we can delete the file from visual code and the changes can be pushed to
GitHub repository by following steps 5, 6, and 7.
Step 11: Now, create a file in the GitHub repository and fetch the update in Visual Studio
Code.
Git pull
Step 12: Create a folder in local repository and create a file. Next change the directory using
cd command.
Git hidden folder not visible in local directory, because it is not a GitHub repository. We have
to change directory into GitHub directory.
Git init