Welcome 微信登录

首页 / 操作系统 / Linux / Git使用小结

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库中的文件更新到你的文件夹下Git使用指南Zabbix 图标下方文字显示为方块的处理办法相关资讯      Git  Git使用 
  • Git 2.10 发布- Push、Worktree、   (09月21日)
  • Git 技能学习总结  (08月05日)
  • Git诞生11年后,BitKeeper宣布开源  (05月11日)
  • Git 安装使用教程  (09月12日)
  • 使用Eclipse上传/下载Git项目  (05月29日)
  • Git 2.8.2 发布,源代码管理系统  (05月03日)
本文评论 查看全部评论 (0)
表情: 姓名: 字数