Push Your First Code on Github

sandeep negi
1 min readSep 13, 2019

--

hi everyone, My name is sandeep and I am a passionate developer who loves technology and learning new things everyday. I know you are not here for my information but this is important to know about both of us.

So what we are gonna do today is

  1. Create a project on local machine
  2. Commit those changes and push it to github

Step 1:- Create a project folder locally and add some files. I will create a folder and put one html file inside it.

step 2:- Go to that folder and write some commands

: git init

:git add .

git commit -m “this is first commit ”

Step 2:- Now go to github.com and create a new repository without a README.md file and copy the url of the repository

Now go back to local repository and add the command

git remote add origin //your url

now we just have to push our code

git push -u origin master

--

--

sandeep negi
sandeep negi

Written by sandeep negi

Software Engineer, who loves challenges and new technologies. :)

No responses yet