0

I have configured a local bit repository and have several test commits with files in it.Status is available as follows.

enter image description here

I have a Bitbucket account and created a new repository and I have given the link of it. enter image description here

Then I tried to push the content of local git to remote repository in Bitbucket. But I get an error message. enter image description here

How to get this sorted? Thanks in advance for any help!!!

3
  • you need to use git pull -u origin master first. then commit again and try push Commented Jan 22, 2018 at 11:18
  • you don't have the last version of the branch. Do git pull origin master first Commented Jan 22, 2018 at 11:19
  • Please don’t post screen shots. Commented Jan 22, 2018 at 13:54

3 Answers 3

1

Your have to fetch first the changes from the remote repository and the push

again.

 git fetch origin master git checkout master 

Take a look here https://blog.plover.com/prog/git-ff-error.html

Sign up to request clarification or add additional context in comments.

Comments

1

If I read the error message correctly, it looks like there are commit(s) on the remote branch which you don't have locally. Try pulling first:

git pull -u origin master 

Then try your push:

git push -u origin master 

Comments

0

Follow these commands.

git add . git commit -m "your commit message" git push -u origin master. 

if any changes were not pulled initially u need to pull first

git pull -u origin master 

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.