Git常用命令

2017-04-18  本文已影响7人  Sealwk

2017.12.04

git checkout master

git merge issu53

git branch -d issu53

-列出当前所有分支

git branch
git branch -v ##查看分支状态

git branch --no-merged ##未合并的分支
git branch --merge ##已合并的分支


git add .
git commit -m "First commit."

git status

git diff

git diff app/src/main/java/com/example/providertest/MainActivity.java

git checkout app/src/main/java/com/example/providertest/MainActivity.java

git reset HEAD app/src/main/java/com/example/providertest/MainActivity.java

git log

git log ID -1

git log ID -1 -p

上一篇 下一篇

猜你喜欢

热点阅读