Repository in GitHub
A repository is a central location where developers store and manage their code. It is typically used for version control, tracking changes made to the code over time. To create a new repository on GitHub, navigate to your GitHub account, and click on the "New" button. You can then specify the repository name, description, and choose whether the repository should be public or private.
Example:
git init
git add .
git commit -m "initial commit"
git remote add origin https://github.com/your-username/repository-name.git
git push -u origin master
No comments:
Post a Comment