git commands to push code to new repo - Neethahiremath/Wiki GitHub Wiki

push to repo :

https://help.github.com/en/github/importing-your-projects-to-github/adding-an-existing-project-to-github-using-the-command-line

Git init

Git add .

Git commit -m “first commit”

git remote add origin remote repository URL

git remote -v

git push -u origin master

If issue caused while push .. need to pull first and push again

git pull origin master --allow-unrelated-histories