Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

New files added to commit don't show on remote repository

Marcos Cavalcante Barboza August 13, 2018

Hi,

 

I am currently having the following problem. 

Any new file that I create or add to my repository is not shown on the remote repository on Bitbucket.

 

I've even created a Bitbucket pipeline (with the Bitbucket editor) and I can't edit the .yml file because, BItbucket can't find it - Even though it shows it on my repository.

I get this message

can't find pipeline.PNG

 

I am not using SourceTree to push my files, only my Windows CMD (with Git installed). I just installed SourceTree and started to use Git from there.

1 answer

0 votes
Yogesh Mude
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 13, 2018

HI @Marcos Cavalcante Barboza

Welcome to the community!

Please make sure first you should clone the bitbucket repo on the local system and then follow the below steps.

1. Change the dir/repo

$ cd <Dir_name>

2. Add the files/dir

$ git add .

3. Commit the changes

$ git commit -m "<Commit Message>"

4. Push the changes to repo

$ git push -u origin master

Marcos Cavalcante Barboza August 13, 2018

Thanks @Yogesh Mude,

 

I've done those steps when pushing my commits/changes to the remote repository.

 

For some unknown reason, the new files, that I push, are not being shown on the remote repo.

 

Even the .yml file that I created on Bitbucket itself, for my pipeline, is not shown there.

Yogesh Mude
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 13, 2018

Hi @Marcos Cavalcante Barboza

If you see the error message as you have been attached that file itself is not available/exist.

can you please re-login and then try with the same steps.

Marcos Cavalcante Barboza August 13, 2018

Thanks for your attention @Yogesh Mude,

 

I've logged out and logged back ina gain, but the files are still no there.

 

I am sure that the files are on my git repository, but I can't see them on Bitbucket.

 

When I run, 

git ls-tree --full-tree -r HEAD

It shows all of my files, even the new ones that I've added days ago, whereas, on Bitbucket that doesn't show.

 

Any other ideas? :D 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events