Git 安裝和配置(網路代理程式的設定)
安裝 git
sudo apt-get install git
查看git配置
git config --list
或者~/gedit .gitconfig
git設定代理(一般用於公司內部網路,如果上網正常,不需要設定)
git config --global http.proxy ip:port
git使用者名稱
git config --global user.name "FIRST_NAME LAST_NAME"
配置email
git config --global user.email "MY_NAME@example.com"
建立Bitbucket使用者和倉庫
https://confluence.atlassian.com/display/BITBUCKET/Create+a+Bitbucket+account+and+a+Git+repository
初始
mkdir /path/to/your/project
cd /path/to/your/project
git init
git remote add origin https://XXX@bitbucket.org/YYYY/ZZZZ.git
git add .
git commit -m "modify"
git push -u origin master
修改後
修改檔案(git已經建立)
git add .
git commit -m "注釋"
git push -u origin master
檢出
git pull
複製
git clone https://XXX@bitbucket.org/YYYY/ZZZZ.git
GitHub 教程系列文章:
GitHub 使用教程圖文詳解
Git 標籤管理詳解
Git 分支管理詳解
Git 遠程倉庫詳解
Git 本地倉庫(Repository)詳解
Git 伺服器搭建與用戶端安裝
Git 概述
分享實用的GitHub 使用教程
Git 的詳細介紹:請點這裡
Git 的:請點這裡
本文永久更新連結地址: