小编Lou*_*uth的帖子

删除所有本地git分支

我遵循一个开发过程,为每个新功能或故事卡创建一个新的本地分支.完成后,我将分支合并为master,然后推送.

由于懒惰或健忘的结合,随着时间推移会发生的事情是,我最终得到了大量的本地分支,其中一些(例如尖峰)可能没有被合并.

我知道如何列出我所有的本地分支,我知道如何删除一个分支,但我想知道是否有一个git命令允许我删除所有我的本地分支?

以下是该git branch --merged命令的输出.

user@machine:~/projects/application[master]$ git branch --merged
  STORY-123-Short-Description
  STORY-456-Another-Description
  STORY-789-Blah-Blah
* master
Run Code Online (Sandbox Code Playgroud)

所有删除列出的分支的尝试grep -v \*(根据下面的答案)都会导致错误:

error: branch 'STORY-123-Short-Description' not found.
error: branch 'STORY-456-Another-Description' not found.
error: branch 'STORY-789-Blah-Blah' not found.
Run Code Online (Sandbox Code Playgroud)

我正在使用:
git 1.7.4.1
ubuntu 10.04
GNU bash,版本4.1.5(1) -
发布GNU grep 2.5.4

git bash version-control ubuntu grep

270
推荐指数
24
解决办法
16万
查看次数

我的应用不适用于Google Play上的平板电脑设备

我在2天前在Google Play上发布了我的应用.出于某些原因,我只能在手机的Google Play中看到它.如果我在我的三星Galaxy Tab上搜索它,它就不会出现.

在manifest.xml中我没有写过类似的东西:

 android:largeScreens="false" 
Run Code Online (Sandbox Code Playgroud)

另外,据我所知,默认情况下,此标记设置为"true".

谁能告诉我一些关于这个问题的事情?

在Web浏览器的Google Play上,我看到了以下信息:

此应用与您的某些设备兼容.

-Samsung GT-P7500此项目与您的设备不兼容.

-Vodafone Samsung GT-I9000

-HTC HTC Sensation Z710e

= = = EDIT = =这是我的清单,就像你问的那样:

我也使用电话和电话管理员..这可能是问题吗?我必须为标签制作另一个版本或者什么?

也许android:largeScreens="false" 这是默认的?

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.KeySoft.OpenGuide"
    android:versionCode="2"
    android:versionName="1.1" >
   <uses-library android:name="com.google.android.maps" />

    <uses-sdk android:minSdkVersion="10" />

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
    <uses-permission android:name="android.permission.CALL_PHONE"/>
    <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>"
    <uses-permission android:name="android.permission.ACCES_LOCATION_EXTRA_COMMANDS"/>
    <uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION"/>   
    <uses-permission android:name="android.permission.CONTROL_LOCATION_UPDATES"/>   

    <application
       android:icon="@drawable/ic_launcher"
       android:label="@string/app_name" >
    <uses-library android:name="com.google.android.maps" />

         <activity
            android:name=".LoadingScreen"
            android:theme="@android:style/Theme.NoTitleBar"
            android:label="@string/app_name" >
         <intent-filter>
         <action …
Run Code Online (Sandbox Code Playgroud)

android publish google-play

19
推荐指数
1
解决办法
2万
查看次数

从顶部滑动抽屉

我试图在我的应用程序中从顶部拉下滑动抽屉,但我无法找到一种方法来做到这一点.有帮助吗?

android

6
推荐指数
1
解决办法
4223
查看次数

如何传递字符串列表

在Java模式下使用play framework 2.0,我想使用URL参数将字符串列表传递给Controller.

给定一个URL,例如:

http://localhost:9000/echo?messages=hello&messages=world
Run Code Online (Sandbox Code Playgroud)

我想调用我的Controller方法:

public static Result echo(List<String> messages){
    return ok("Size: " + messages.size());
}
Run Code Online (Sandbox Code Playgroud)

我的路线文件如下所示:

GET      /echo             controllers.Application.echo(messages: List[String])
Run Code Online (Sandbox Code Playgroud)

但它不起作用.我得到错误声称List [String]没有QueryString绑定器.这对我来说似乎不对,因为这是以前版本中非常标准的功能.有人知道如何使用Java项目将字符串列表传递给控制器​​吗?

java playframework-2.0

5
推荐指数
1
解决办法
2238
查看次数

Android应用程序已停止使用NoClassDefFoundError

My Manifest file is below




<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="FXPAL.Unity.Android"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk android:minSdkVersion="15" />

<application
    android:icon="@drawable/ic_launcher"
    android:theme="@android:style/Theme.Light" android:name=".UnityMobileApp" android:debuggable="true"
    android:label="@string/app_name" >
    <activity
        android:name=".UnityMain"
        android:label="@string/app_name" 
        android:theme="@android:style/Theme.Light.NoTitleBar">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
        <intent-filter>
            <action android:name="FXPAL.Unity.Android.LAUNCH" />
            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
    </activity>
    <activity android:name=".IndividualViewActivity"
        android:label="@string/app_name" android:theme="@style/PageStyle">
    </activity>
    <activity android:name=".EditPreferences" android:label="@string/app_name">
    </activity>
    <activity android:name=".LoginActivity" android:label="@string/app_name"
        android:theme="@style/PageStyle">
    </activity>
    <activity android:name=".SendPingActivity" android:label="@string/app_name"
        android:theme="@style/PageStyle">
    </activity>
    <activity android:name=".ReceivePingActivity" android:label="@string/app_name"
        android:theme="@style/PageStyle">
    </activity>
    <activity android:name=".SendNudgeActivity" android:label="@string/app_name"
        android:theme="@style/PageStyle">
    </activity>
    <activity android:name=".PlacesActivity" android:label="@string/app_name"
        android:theme="@style/PageStyle">
    </activity>
    <activity …
Run Code Online (Sandbox Code Playgroud)

java android

3
推荐指数
1
解决办法
871
查看次数