Activity #5 Github Fundamentals

Step 1: Setting Up Your Environment
Before diving into Git, ensure you have it installed on your system. Once installed, the first step is to set up your Git identity.

Step 2: Navigating to Your Project
For this guide, let’s assume your project is located at C:\Users\MOTOBARBERS\Git Fundamentals\Git_Fundamentals.py. To start working with Git, you need to navigate to this directory in your Command Prompt:

Step 3: Initializing a Git Repository
If you're starting fresh and your project isn't already under version control, you'll need to initialize a Git repository. This creates a .git directory in your project folder, which Git will use to track your changes.

Step 4: Checking the Status
Before you start adding or committing files, it's a good idea to check the status of your repository. This command will show you any untracked or modified files:

If your file Git_Fundamentals.py is new, it will show up as untracked.
Step 5: Staging Your Files
To start tracking changes in your file, you need to add it to the staging area. The staging area is like a clipboard where Git prepares files for the next commit.

Alternatively, if you want to stage all modified and untracked files, you can use:

Step 6: Committing Your Changes
Once your files are staged, the next step is to commit them. A commit in Git is like taking a snapshot of your project at a specific point in time. Always accompany your commits with a message that describes the changes you made.

This command saves the changes in your local repository with a descriptive message.
Step 7: Setting Up a Remote Repository
To share your code or collaborate with others, you’ll want to push your commits to a remote repository like GitHub. First, create a repository on GitHub (or any other Git hosting service), then link it to your local repository:

This command connects your local repository with the remote one.
Step 8: Pushing Your Changes
After linking your repository to GitHub, you can push your changes to the remote repository. This is how you upload your commits to GitHub:

The -u flag sets the upstream branch, so in the future, you can simply use git push without specifying the branch.
Step 9: Continuing Your Work
Now that your project is under version control, you can continue developing. As you make changes, remember to add, commit, and push your changes regularly:

Comments
Join the discussionno repository link -5
Great! Palagay ng github repo sa bandang huli
Great! Palagay ng github repo sa bandang huli
Nice! Palagay na rin ng link ng github repo