Hello there!
Let's learn something today.
Pharmasift Part I
Frontend
Beginner
7. Push Your Code
Now that you've set up your project and made some changes to your index files, it's time to commit those changes and push them to your GitHub repository. Follow these steps to make your first commit and push to GitHub:
Step 1: Open Your Terminal or Integrated Terminal in VS Code
On Windows:
Open the Command Prompt or PowerShell.
On macOS or Linux:
Open the Terminal.
In VS Code:
Open the integrated terminal.
Step 2: Navigate to Your PharmaSift Project Directory
Use the cd command to navigate to your PharmaSift project directory:
cd path/to/your/pharmasift
Step 3: Check the Status
Run the following command to check the status of your Git repository:This will show you the changes you've made.
git status
Step 4: Add Changes to the Staging Area
Stage your changes for commit using the following command: This adds all the changes you made to the staging area.
git add .
Step 5: Make a Commit
Commit your changes with a meaningful message: Replace the commit message with a description of the changes you made.
git commit -m "Add index files and basic styling"
Step 6: Push Changes to GitHub
Now, push your changes to your GitHub repository:This command pushes your committed changes to the main branch of your GitHub repository.
git push origin main
Step 7: Verify Changes on GitHub
Visit your GitHub repository in the browser.
You should see your committed changes reflected in the repository.
Next Steps:
Congratulations! You've successfully made your first commit and pushed changes to GitHub. In the next chapter, we'll explore more advanced Git concepts and continue building the PharmaSift project.
Head over to Chapter 9 for the next steps in building PharmaSift!
đ„ Great job! Let's keep the momentum going!