To get your code changes into Bitbucket, you work on them locally before you add, commit, and push them to Bitbucket.
Push changes to a Git repository
- Create your new files or edit existing files in your local project directory.
- From the command line, enter
cd <path_to_local_repo>so that you can enter commands for your repository.
git add --allat the command line to add the files or changes to the repository.
git commit -m '<commit_message>'at the command line to commit new files/changes to the local repository. For the
<commit_message>, you can enter anything that describes the changes you are committing.
git pushat the command line to copy your files from your local repository to Bitbucket.
- If prompted for authentication, enter your app password.