
Photo by Mohammad Rahmani on Unsplash
Blind steps to push code to GitHub !
Follow these master steps to push your code in local machine to GitHub Repository.
After creating project folder with ReadMe file on GitHub >> perform these steps to push code to main branch :-
cd { project-folder-name }
git init
git status // by default branch show master
git remote add origin { URL } ( for pasting in terminal click : ctrl + shift + v )
git checkout main
git merge master
git branch -d master
git add .
git commit -m ‘Initial commit’
git fetch
git push origin main
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☻