Blind steps to push code to GitHub !

Follow these master steps to push your code in local machine to GitHub Repository.

·

1 min read

After creating project folder with ReadMe file on GitHub >> perform these steps to push code to main branch :-

  1. cd { project-folder-name }

  2. git init

  3. git status // by default branch show master

  4. git remote add origin { URL } ( for pasting in terminal click : ctrl + shift + v )

  5. git checkout main

  6. git merge master

  7. git branch -d master

  8. git add .

  9. git commit -m ‘Initial commit’

  10. git fetch

  11. git push origin main

  12. git pull --rebase origin main

Thank you for visit. Do like this post if you find helpful as a begginer and do comment for more such blind steps☻