create repository in github using command line 1

create repository in github using command line

echo "# Can-I-Shop-2" >> README.md
git init
git add .
git commit -m "first commit"
git remote add origin https://github.com/username/projectname.git
git push -u origin master
                

Here is what the above code is Doing:
1. Create a new directory for your project.
2. Change into that directory.
3. Initialize a new git repository.
4. Create a README file.
5. Add the README file to the repository.
6. Commit the README file to the repository.
7. Add a remote repository.
8. Push the changes to the remote repository.

Similar Posts