Update Files in Bitbucket

Asked

Viewed 1,721 times

0

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

1 answer

1

After having already installed the git, to propose changes in your repository you can use the add. Behold:

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

To actually confirm these changes (i.e., commit), use:

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

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

git push origin master

For more details, read this practical guide.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.