I. Software and SSH keys:
Because my Bitbucket account has the same email address and user name as GitHub, ssh public keys can use GitHub to log on to Bitbucket and click "Account" in the user name boliquan ", click "SSH keys" on the left to install the software.
2. Create and upload a private project:
After logging on, hover your mouse over "repositories" and select "create repositories". "name" indicates the project name, for example, ylife. By default, select "private", "repository type", and select "Git ", select "language" "Description" for the project and enter the publishing address for "website". You can see that the private project has a small lock icon to create a Bitbucket folder on disk D, create a ylife folder and put the project file in it. Right-click the "ylife" folder and choose "Git Bash". The command box appears.
Git init input this git add. add all files (just prepare them locally, pay attention to the ". git commit-M 'version 1.2.6 'quotes indicate the information git remote add origin git@bitbucket.org: boliquan/ylife. gitgit push origin master upload steps have been completed here
If you want to access the https://bitbucket.org/boliquan/ylife/ directly go to the source code page, click "admin", "landing page" select "Source", here you can also set a lot of things, for example, you can select "private" as the private database, and uncheck this option to change to a public database.
3. Modify and upload local files
After modifying the local file, right-click "Git Bash" in the "ylife" folder and the command box appears.
If the content is added, git add first. git commit-a-m 'version 1.2.6 'modification (local) git push origin master modification (server). You can find that the modification has been made on the Bitbucket website.
4. Create a tag:
In the "ylife" folder, right-click "Git Bash" and the command box appears.
Git tag-A 1.2.6-M 'version 1.2.6 'indicates the GIT push -- tags. You can view the created tag on the Bitbucket website.
5. delete a tag. In the "ylife" folder, right-click "Git Bash" and the command box appears.
Git tag-D 1.2.6 Delete this tag (local) git push origin: refs/tags/1.2.6 Delete this tag (server), then you can find that the tag on the Bitbucket is missing
6. Download a project from the server
Right-click "Git Bash" in the "Bitbucket" folder and the command box appears.
Git clone git@bitbucket.org: boliquan/ylife. Git will download to a folder named "ylife" and the source code