Git的进行版本控制Android项目

编程入门 行业动态 更新时间:2024-10-13 12:18:55
本文介绍了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项目

本文发布于:2023-10-31 10:52:35,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1545869.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:版本   项目   Git   Android

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!