Thursday, 15 August 2013

git commit not showing up in github -



git commit not showing up in github -

i git newbee , have simple github repo , want commit alter it, ...

1) start "git bash" (i on windows system) 2) execute ...

$ git clone https://github.com/redcricket/simple_flashlight.git

3) export alter eclipse simple_flashlight/flashlight/ 4) cd ...

$ cd simple_flashlight/flashlight/

5) diff ...

$ git diff androidmanifest.xml diff --git a/flashlight/androidmanifest.xml b/flashlight/androidmanifest.xml index a57b2c1..59d5fc5 100644 --- a/flashlight/androidmanifest.xml +++ b/flashlight/androidmanifest.xml @@ -4,6 +4,7 @@ android:versioncode="1" android:versionname="1.0"> <uses-sdk android:minsdkversion="8" /> + <!-- allows access flashlight --> <uses-permission android:name="android.permission.camera"></uses-permission> <uses-permission android:name="android.permission.wake_lock"></uses-permission> @@ -16,7 +17,12 @@ <application android:icon="@drawable/icon" android:label="@string/app_name" + <!-- + - prevent "flashing" when orientation changes added line + - android:configchanges="orientation" + --> <activity android:name=".flashlightactivity" + android:configchanges="orientation" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.main" /> warning: lf replaced crlf in flashlight/androidmanifest.xml. file have original line endings in working directory.

6) "staging" ... think ... doing ...

$ git add together androidmanifest.xml warning: lf replaced crlf in flashlight/androidmanifest.xml. file have original line endings in working directory. $ git status warning: lf replaced crlf in flashlight/androidmanifest.xml. file have original line endings in working directory. # on branch master # changes committed: # (use "git reset head <file>..." unstage) # # modified: androidmanifest.xml #

7) commit ...

$ git commit -m "do not flash lite on orientation change" [master warning: lf replaced crlf in flashlight/androidmanifest.xml. file have original line endings in working directory. 361f69b] not flash lite on orientation alter warning: lf replaced crlf in flashlight/androidmanifest.xml. file have original line endings in working directory. 1 file changed, 6 insertions(+)

then go @ repo in https://github.com/redcricket/simple_flashlight/commits/master , not see changes. here's git config ...

$ git config --global -l user.name=redcricket user.email=red.cricket.blog@gmail.com

... doing wrong?

thanks!

you committed alter local clone of repository.

if want see commit on github, you'll need git push there first.

git github

No comments:

Post a Comment