I am trying to implement bare repository to sync two different repositories. I am following this post : https://softwareengineering.stackexchange.com/a/303201/102989
I am successfully able to sync both repo on first time but when I further commit something in Repo1(for e.g. master branch) and try to run same commands then it throw an error :
! [rejected] master -> master (non-fast-forward) error: failed to push some refs to 'https://UserName:Password@git. assembla.com/reponame.git' hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Integrate the remote changes (e.g. hint: 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details.
Please advise what I missed here
Thanks