Hosting Service

02 Oct 2018 | MAK Azad

Github command

Category : Github | Tag : Github | Push-Pull |

F:\Python\bio>git init
F:\Python\bio>git status
F:\Python\bio>git add --all .
F:\Python\bio>git config --global ""
F:\Python\bio>git commit -m "First Commit! Finalize full site in Flask"
F:\Python\bio>git remote add origin

F:\Python\bio>git push -u origin master

[Updates were rejected because the remote contains work that you do not have locally. This is usually caused by another repository pushing to the same ref. You may want to first integrate the remote changes (e.g., 'git pull ...') before pushing again. See the 'Note about fast-forwards' in 'git push --help' for details]

if git push shows the above error then enter the following command

F:\Python\bio> git push -f master


All post under category Github

1. Github command
2. How to Push a new local  repository to an existing GitHub repository
3. How to force git pull to overwrite local files