GitGoing is a beginner-friendly project focused on tracking progress and learning how to use git and GitHub.
-
You will need to have git installed on your local machine. You can download it here.
-
Once you have git installed, you will need to configure git. You can do this by running the following commands in your terminal.
git config --global user.name "Your Name"
git config --global user.email "Your Email"
- Fork the repository by clicking the "Fork" button in the upper right corner of the repository page.
💡 This will create a copy of the repository in your GitHub account.
- Then, clone the forked repository to your local machine.
git clone https://github.com/YourHandle/GitGoing.git
Create a new branch using the following command:
git checkout -b <your-new-branch-name>
Once you create your new branch, you will be switched to that branch with the following command:
git switch <your-new-branch-name>
You can add a new file, edit an existing file, or delete a file.
To keep things simple, let's edit the index.html
file by changing the name to "GitGoing-YourLastName" on line 10.
Once you update the name, stage your changes using the following command:
git add .
Or, you can stage the individual file you changed by using the following command:
git add index.html
Commit your changes using the following command:
git commit -m "Your commit message"
Push your changes to the remote repository using the following command:
git push origin <your-branch-name>
Create a pull request on GitHub.
Review and merge your pull request on GitHub.
Delete your branch using the following command:
git branch -d <your-branch-name>
- Git Cheatsheet ↗
- Introduction to Git and GitHub ↗
- GitHub Skills Courses ↗
- GitHub Foundations Certificate ↗
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.