1. 程式人生 > >git工具基本使用方法

git工具基本使用方法

git工具基本使用方法

 

--初始化
$git init

--克隆,將倉庫內容複製到本地
$git clone http://192.168.10.87:6610/projects/jzxn_code

--將本地調整的內容增加到本地倉庫
$git add *

--將本地調整的內容提交到本地倉庫
$git commit -m 'zhengch';


--將本地調整的內容提交到本地倉庫,同時更新遠端倉庫目錄
$git commit -a -m 'zhengch';


--提交前比對是否存在差異
$git pull

---提交到遠端倉庫
$git push -u origin master