首页 > 技术文章 > 简单 常用的git命令

wq-gril 2015-09-22 10:13 原文

常用的git命令

git pull  获取最新

 

 

git add . 提交所有

 

 

git commit  -m “我的注释”

 

 

git status 查看状态

 

 

git push origin master 提交到主分支上

 

 

git checkout fileName 

 

 

git add -u 修复

 

 

git checkout ~~   切换分支

 

//以下为错误问题与解决方案

fatal: multiple stage entries for merged file 'filePath/~~~’

rm .git/index

 

git add -A

git commit

推荐阅读