Push Your First Code on Github
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
- Create a project on local machine
- 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