After pushing to a bucket, it remains empty. what could be the cause

Hyginus Nwagu April 12, 2022

Ran these command to to push it

cd projdir

git init
git add *
git commit -m "Initial Commit by Hyginus Nwagu"
git push -u origin master

1 answer

0 votes
Karthick S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 13, 2022

Hello @Hyginus Nwagu

Welcome to the Community!

Could you please check if your local branch has remote-tracking? You may run the below command to confirm:

git remote -v

 Can you also check if there are any files tracked/untracked? 

git status

You may use the below command to add all the untracked files to the staging area, commit and then push them to the remote branch. 

git add .
git commit -m "message"
git push remote-name branch-name

Reference: https://support.atlassian.com/bitbucket-cloud/docs/push-code-to-bitbucket/

I hope this helps.

Kind regards,
Karthick S

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events