歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Git使用小結

Git使用小結

日期:2017/2/28 14:56:04   编辑:Linux教程
git checkout <file> 將文件回歸原始狀態

git status 查看版本庫的狀態

git add <file> 添加一個文件

git commit 提交文件的更改(會提示編寫標題 使用Ctrl + X提交後,選Y,點擊enter,完成提交)

git reset HEAD^ --soft 回退上一層的操作

git format -path -1 生成patch文件

git config user.name "yourname" 設置你的名字

git config user.email "youremail" 設置你的email地址
git clone gitserver@ipaddress <file> 將git庫中的文件更新到你的文件夾下
Copyright © Linux教程網 All Rights Reserved