GettingStarted
GettingStarted

Reputation: 7625

My Repo on BitBucket is not synced with my local project

I go to bitbucket, i see the other coder performed a commit.
I performed a git pull from his code before updating my local code

however now I am trying to push the code and I am unable to

Here is my command line

git status
nothing to commit, working directory clean
git add .
git commit -m "Adding all files"
nothing to commit, working directory clean
git push -f

Upvotes: 1

Views: 69

Answers (2)

CodeWizard
CodeWizard

Reputation: 142632

First of all it looks like you dont have any files to commit.
Once you have some content you have to push it.

Since you dont have any content you dont have anything to push as well.

Looks like your files are in ignored by git.

To display a list of all your ignored file:

git check-ignore *
git check-ignore -v *

Upvotes: 0

Pedro Benevides
Pedro Benevides

Reputation: 1974

You are not pushing your code, you just commited locally, you must do git push origin <branchName>

Upvotes: 1

Related Questions