Update Files on BitBucket

0

I have a question about how to update my files on bitbucket, the repository has already been created and I already did the 1 commit. So if I need to upload new files I need to clone the repository and put the new files in that folder and then upload again?

    
asked by anonymous 31.03.2017 / 20:09

1 answer

1

After you have already installed git to propose changes to your repository you can use add . See:

git add <arquivo> # podes mandar um único arquivo pelo nome
git add .         # podes mandar todos arquivos alterados

To really commit these changes (that is, commit), use:

git commit -m "comentários das alterações"

Your changes are now in HEAD of your local working copy. To send these changes to your remote repository, run:

git push origin master

For more details, read this practical guide .

    
31.03.2017 / 20:25