DEV Community

Ajinkya Biyani
Ajinkya Biyani

Posted on

How To Create A Git Repo For Beginners

Let’s create a simple repository containing a readme.txt file
Register on GitHub, and create a repository.
Now create a “readme.txt” file in a folder on your desktop.
Open this folder > Right click > Now click the “Git Bash Here” option to open the terminal.
In the terminal, type git init then press enter
git add readme.txt
git commit -m "first commit message"
git remote add origin URL [copy this URL from the your repository page]
git push -u origin master
We have successfully created our first repository containing a readme.txt file.

Top comments (0)