Git的进行版本控制Android项目 [英] Git for version controlling Android project

查看:170
本文介绍了Git的进行版本控制Android项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于一些神秘的原因,我最终删除我的本地库。我现在克隆我的远程回购回我的Eclipse工作区,它表明我对我的Andr​​oid项目的主分支,而不是当地的回购工作,这是有道理的。

For some mysterious reasons, I ended up deleting my local repository. I now cloned my remote repo back into my Eclipse workspace and it shows that I am working on the master branch of my Android project rather than the local repo and it makes sense.

为什么我开始使用Git是这样我可以对项目的野生变化,如果有任何休息,我可以回到过去的稳定状态的原因。现在,当地的回购走了,我直接对项目我的主分支的工作,我不知道如何可以做。

The reason why I started using Git is so that I can make wild changes to the project and if anything breaks, I can go back to the last stable state. Now, with a local repo gone and me working straight on my master branch of the project, I do not know how that can be done.

请告诉我怎么可以做。

PS:我需要有Android项目在我的工作区,否则Eclipse启动抱怨的原因无法找到用户库

推荐答案

您可以BRACH说masterbranch和开发建筑学学士:主BRACH意味着最稳定的code是在任何更改后开发BRACH表U愿意承担备份ü可以推到dev BRACH和不推主之前,除非乌尔肯定。

You can make brach say masterbranch and dev barch : master brach means most stable code is in , dev brach means after any changes u willing to take backup u can push to dev brach and dont push to master until and unless u r sure of it.

创建本地BRACH

git checkout -b your_branch

它推到远程服务器。

Push it to the remote server.

git push <remote-name> <branch-name>

这篇关于Git的进行版本控制Android项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆