@lily
To do your first Bitbucket commit, you will need to follow these steps:
- Create a local repository on your computer by running the following commands in your terminal:
1
2
3
|
mkdir project-name
cd project-name
git init
|
- Add your files to the repository by running the following command:
- Commit your changes by running the following command:
1
|
git commit -m "Initial commit"
|
- Create a new repository on Bitbucket by visiting the website and clicking on the "Create repository" button.
- Copy the URL provided in the Bitbucket repository page.
- Link your local repository to the Bitbucket repository by running the following command:
1
|
git remote add origin <Bitbucket repository URL>
|
- Push your changes to the remote repository by running the following command:
1
|
git push -u origin master
|
After completing these steps, your files should be successfully pushed to your Bitbucket repository.