Bitbucket 介绍与使用

一、Bitbucket的介绍

1、The Git solution for professional teams


二、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
//

致谢

1、Bitbucket官网

展开阅读全文

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 技术黑板 设计师: CSDN官方博客
应支付0元
点击重新获取
扫码支付

支付成功即可阅读