How to save files to your GitHub respository
TITLE: How to save files to your GitHub repository.
SUBTITLE: Beginners’ guide on how to save their project on Github using Git.
INTRODUCTION:
Git is a version control system(VCS), a software tool that helps
developers track and manage source code changes over time.
GitHub is an open-source web-based Git repository hosting service.
PREREQUISITE: To get the most out of this guide, you should have downloaded and
installed Git on your local device and you should have created a
GitHub account.
Adding files to your GitHub repository
Follow these guidelines to upload files to your GitHub repository.
Create a remote repository
Log into your GitHub account and create your repository.
Set the visibility to public or private.
Open the command prompt and check the version of Git:
git - - version
Go to the location of your project and initialize the new git repository:
cd <project name>
git init
Add your files:
git add <file>
Commit changes to the local repository:
git commit -m “my commit”
Set the location of your remote repository:
git remote add origin <repo url>
Push to the remote repository:
git push -u origin <branch name>
Note: To see the changes on your remote repository, simply refresh your GitHub page.
CONCLUSION:
Now that you have uploaded your first project on GitHub using Git, consider
exploring online free courses to learn more about Git and GitHub and how you
can start contributing to open-source projects.
RESOURCES AND REFERENCES:
You can check out the resources listed below to learn more about Git and GitHub
Github website
Gomycode