Create your github account at github.com
Download the git in your computer/laptop from here and install in your machine
Notice in your folders there will be a .git folder will be created. now next command is git add . (type command carefully you have to type dot also)
Now, check the branch by this command git branch branch can be master or main in my case it is master.
Go to github and Sign in and create new repository by clicking on new or it can be plus + sign. I clicked on new
It opens like this
Now run this command ssh-add ~/.ssh/id_ed25519
Now for copy the ssh key run this command clip < ~/.ssh/id_ed25519.pub
Copy this selected command from your github and paste it in your git bash (Note: you have to copy your command only do not copy my command)
Now run this command git push -u origin master my branch is master thats why i typed master if your branch is main then you have to type main.
Congratulations guys your project successfully added to your github now you can check your github repository you will find files there like this
Comments
Post a Comment