Git常用操作

 

1.遇到冲突的解决

git push --rebase

git mergetool -y

git rebase --continue

 

2.废弃本地临时提交,没有git push

git reset --hard c91ecbf92f242827ad0f46fb8fd19bafe4919185

 

3.删除重建一个分支,修改

2160  git log

 2161  git status

 2162  git log

 2163  git checkout -b new 0cfb3fc9e61eb2316763247a565ffd140cb74295

 2164  git status

 2165  git branch -av

 2166  git branch -d master 

 2167  git branch -D master 

 2168  git branch -h

 2169  git branch -m new master

 2170  git branch

 2171  git log


你可能感兴趣的:(Android开发,Git)