一、Bitbucket的介绍
二、Bitbucket的使用
1、You have an empty repository
(1)To get started you will need to run these commands in your terminal.
2、Configure Git for the first time
//
git config --global user.name "wang"
git config --global user.email "wang.xx@worthsen.com"
//
3、Working with your repository
(1)I just want to clone this repository
//If you want to simply clone this empty repository then run this command in your terminal.
git clone http://wang.xx@192.168.1.180:xxx/adas/camera_test.git
//
(2)My code is ready to be pushed//If you already have code ready to be pushed to this repository then run this in your terminal.
cd existing-project
git init
git add --all
git commit -m "Initial Commit"
git remote add origin http://wang.xx@192.168.1.180:xxx/adas/camera_test.git
git push -u origin master
//
(3)My code is already tracked by Git//If your code is already tracked by Git then set this repository as your "origin" to push to.
cd existing-project
git remote set-url origin http://wang.xx@192.168.1.180:xxx/adas/camera_test.git
git push -u origin master
//
致谢