Once the files/code committed, we need to upload the files/code to GitHub to make the code available for all the developers. Below are the steps.
Step 1 : Login into GitHub account.
Step 2 : Click on repository which we have create in previous chapter.
Step 3: Run the commands which we have copied at the time of repository creation.
- git remote add origin url
- git push -u origin master
Sree@SreeLaptop MINGW64 ~/MyWorkSpace (master) $ git remote add origin https://github.com/sree7569/myproject.git Sree@SreeLaptop MINGW64 ~/MyWorkSpace (master) $ git push -u origin master
Steep 4: For the first time it will ask username and password of the GitHub account. Enter username and password and click on login.
After successfully authenticated, Local Repository will be uploaded into the remote repository.