This repository is designed for you to practice using GitHub. You will learn how to create repositories, create branches, upload files, commit changes, and raise pull requests (PRs).
- Click the "Fork" button at the top right corner of this page to create a copy of this repository in your GitHub account.
- Open GitHub Desktop and log in to your account.
- Click on "File" > "Clone Repository".
- Select the forked repository from your list.
- Click "Clone".
- Clone the forked repository to your local machine using the command:
git clone https://github.com/your-username/repo-name.git
- Navigate into the cloned repository:
cd repo-name
- In GitHub Desktop, go to "Branch" > "New Branch".
- Name your branch after yourself and click "Create Branch".
- Create a new branch named after yourself:
git checkout -b your-name
- In your local repository folder, create a new folder named after your team.
- Inside the repository, create a new folder named after your team:
mkdir team-name cd team-name
- Add a file in your team folder. This could be a text file, image, or any other type of file.
- For example, create a text file named
hello.txt
with the content "Hello, CodeDay!".
- Add a file in your team folder:
echo "Hello, CodeDay!" > hello.txt
- In GitHub Desktop, you will see the changes you made.
- Write a summary of your changes in the "Summary" box (e.g., "Added hello.txt to team-name folder").
- Click "Commit to your-name".
- Add your changes to the staging area:
git add .
- Commit your changes with a descriptive message:
git commit -m "Added hello.txt to team-name folder"
- Click on "Push origin" to push your branch to your forked repository.
- Push your branch to your forked repository:
git push origin your-name
- Go to the original repository on GitHub.
- Click on "Compare & pull request" next to your branch name.
- Add a title and description for your PR.
- Click "Create pull request".
- Fork the repository
- Clone the repository
- Create a branch named after yourself
- Create a folder named after your team
- Add a file to your team folder
- Commit your changes
- Push your branch to GitHub
- Raise a pull request
By completing these tasks, you will:
- Understand how to navigate and use GitHub.
- Learn the basics of version control with Git.
- Practice collaborative coding techniques.
If you have any questions or need assistance, feel free to reach out to your CodeDay mentors or post in the discussion section of this repository.
Happy Coding! ๐