Below are the steps to set up a Github account and create your first repository:
- Sign up for Github: Go to https://github.com/ and sign up for a new account using your email and a password.
- Create a new repository: After logging in, click on the “+” icon in the top right corner of the page and select “New repository”. Give your repository a name, add a description (optional), and choose if you want it to be public or private.

- Initialize the repository: Choose to initialize the repository with a README file or not. You can also add a .gitignore file and a license if you wish.
type the Repository name and click on create repository, select public and check readme and gitignore file as well

OR upload local repo by:
1 2 |
git remote add origin https://github.com/shrikantpiprode/demoRepository.git git push --set-upstream origin master |

Above screenshot show GitHub repo destination with HTTPS
Now, go back into GitHub and see that the repository has been updated.
- Clone the repository: Clone the repository to your local machine using the git clone command, followed by the repository URL. For example:
1 |
git clone https://github.com/<username>/<repository>.git |
- Make changes to the repository: You can now make changes to the repository, add files, and commit changes using git add and git commit commands.
- Push changes to Github: Use the git push command to upload your changes to the Github repository.
- Continue making changes and pushing to Github: You can continue making changes to your repository and pushing them to Github, following the steps 5 and 6.