A sample repository will be created on the VCS(Github, GitLab, Bitbucket)
echo "# sample-repo" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin [email protected]:ankithg03/sample-repo.git
git push -u origin main
git remote add origin [email protected]:ankithg03/sample-repo.git
git branch -M main
git push -u origin main
You can initialize this repository with code from a Subversion, Mercurial, or TFS project.
- Creating the folder for the project
mkdir sample-repo
- Change Dir.
cd sample-repo/
- Setup Git
git init
>>>Creating README.md File
git add README.md
git commit -m "first commit"
git branch -M main
git remote add remote_repo [email protected]:ankithg03/sample-repo.git
git push -u remote_repo main