• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Git & Github questions

I'm not sure where I am any more. LOL
What I did was make changes to my remote and to my local with out sync'ing. On top of that I must of done something to my ssh keys.
I am working through it, but I'm not sure where I am on this, I think I need to try and pull or something.

I wish I could make a new file on the remote without doing it on the local first. My family pulls me away so I can't keep track of what I am doing sometimes. That's what I get for trying to be a good father and husband:D
 
Upvote 0
Upvote 0
  • Like
Reactions: Chairshot215
Upvote 0
Hey guys I just pushed to my github a set of build scripts I made does building and maintaining my repos and you all are more than welcone to use them. You will have to tweak them to your liking but I tried to make them pretty user friendly!

https://github.com/brandon14/build-scripts

Its gonna be quite a few edits for aokp, but thanks.

Sent from my Motorola Triumph using Tapatalk
 
Upvote 0
I am adding this for completeness. If you are pushing up to your remote, and you don't have a branch, you don't need to state the branch.
Code:
git push github
and you're done!
I'm glad I tried this. I have a bunch of code that has no branch and I was tired of adding branches.:D


Well, you always have to have a branch in order to be able to commit anything. However, whenever you create a repo, it automatically creates a branch named "master". If your current local branch name matches the branch on github, then yes, you don't need to type in the branch name when doing a push to github.
 
Upvote 0
Well, you always have to have a branch in order to be able to commit anything. However, whenever you create a repo, it automatically creates a branch named "master". If your current local branch name matches the branch on github, then yes, you don't need to type in the branch name when doing a push to github.

When I run
Code:
git branch
on some of my prodjects it returns
Code:
* (no branch)
and what I was doing was adding a branc, then pushing that. So is it just understanding "mastrer" for me. I do see that on github it would put the changes to the right place. It seems that on the local, sense I have been downloading with gingerbread as my default, git does a lot of work for me.
Cool!
 
Upvote 0
Thanks for this entire conversation. Still somewhat lost but much better off then I would have been had this conversation never taken place. Have been backing up the entire Android Directory to an external after confirming I have not broke anything and then just copying and replacing the files that had been changed from the backup directory when I do. Besides just learning the proper way of doing things this seems like a much better way of organizing compared to the bastardization of processes I'm currently using.


On a brighter note, I should be able to build and have boot sounds without adding a script.

Once I'm all straightened out would very much like to try and Kang this with your permission? Assuming I'm understanding the definition of Kang correctly that is. Otherwise have been adding the scripts along with a few .9 images from Froyo that cause errors after the build has completed. Will also need to find a equally informative conversation dealing with Eclipse which is next on the list of things I would like to learn.
 
Upvote 0
Thanks for this entire conversation. Still somewhat lost but much better off then I would have been had this conversation never taken place. Have been backing up the entire Android Directory to an external after confirming I have not broke anything and then just copying and replacing the files that had been changed from the backup directory when I do. Besides just learning the proper way of doing things this seems like a much better way of organizing compared to the bastardization of processes I'm currently using.

Yeah it takes a while to figure out github and once you get it down it's much easier to use and mange your project. If you have any questions please don't hesitate to post. The more we talk the more we all know. It's nice to see how each dev does it. Nothing wrong with making our community stronger :cool:
 
Upvote 0
Thanks for this entire conversation. Still somewhat lost but much better off then I would have been had this conversation never taken place. Have been backing up the entire Android Directory to an external after confirming I have not broke anything and then just copying and replacing the files that had been changed from the backup directory when I do. Besides just learning the proper way of doing things this seems like a much better way of organizing compared to the bastardization of processes I'm currently using.




Once I'm all straightened out would very much like to try and Kang this with your permission? Assuming I'm understanding the definition of Kang correctly that is. Otherwise have been adding the scripts along with a few .9 images from Froyo that cause errors after the build has completed. Will also need to find a equally informative conversation dealing with Eclipse which is next on the list of things I would like to learn.

I'd love to give you my permission, but I just parsed a script that someone else made. So, yeah, go ahead and use it:D
 
Upvote 0
Yeah it takes a while to figure out github and once you get it down it's much easier to use and mange your project. If you have any questions please don't hesitate to post. The more we talk the more we all know. It's nice to see how each dev does it. Nothing wrong with making our community stronger :cool:


Thanks, am about to blow up the development thread in a minute. Have spent the last few days trying to consolidate all my changes and start fresh building entirely from Source. Started using Apktool in the beginning because of the availability of resources and if I made a mistake decompiling & compiling an APK takes my Puter about 2 minutes compared to the 2 hours it takes to rebuild the source. Later needed to start building parts from source like Android.policy.jar & CMParts. Found that for tasks outside what I guess would be considered standard theming working with source is much easier than trying to figure out what
 
Upvote 0
I've become confused again. I am trying to use a certain branch (klingon) while building (DeskClock).
I have tried to checkout the branch (klingon), merge the branch (while on the "no branch" branch) and I think if I do this it should drag over the changes to the gingerbread branch on github. Should I make a gingerbread branch on my local and use that to merge and push?

Edit: Like I thought, sense I wasn't trying to push to a branch, it wouldn't push. I added a gingerbread branch to the project and now all is like I expect.
 
Upvote 0
I have lost the ablillity to build based off of my repo. I get an error saying I have a malformed file.
I'll post the error when I'm done sync'ing a test folder. I've looked over my last few commits and I don't see anything.:mad:

Any direction will be soooooo appreciated.

Edit:
Code:
04:36:04_~/aa$ . build/envsetup.sh && brunch triumph -j2
including device/motorola/triumph/vendorsetup.sh
including vendor/cyanogen/vendorsetup.sh
including vendor/cyanogen/vendorsetup.sh
build/core/product_config.mk:198: *** vendor/cyanogen/products/cyanogen_triumph.mk: malformed COPY_FILE "\".  Stop.
Device triumph not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Traceback (most recent call last):
  File "build/tools/roomservice.py", line 16, in <module>
    result = json.loads(urllib2.urlopen("http://github.com/api/v2/json/repos/show/CyanogenMod?page=%d" % page).read())
  File "/usr/lib/python2.6/urllib2.py", line 126, in urlopen
    return _opener.open(url, data, timeout)
  File "/usr/lib/python2.6/urllib2.py", line 397, in open
    response = meth(req, response)
  File "/usr/lib/python2.6/urllib2.py", line 510, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.6/urllib2.py", line 435, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.6/urllib2.py", line 518, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 404: Not Found
build/core/product_config.mk:198: *** vendor/cyanogen/products/cyanogen_triumph.mk: malformed COPY_FILE "\".  Stop.

** Don't have a product spec for: 'cyanogen_triumph'
** Do you have the right repo manifest?

No such item in brunch menu. Try 'breakfast'

I have been trying to switch folders from a project that builds (g60's r0.8+some changes) and my current projuct (what's listed on my github)
I know I may have goofed up the vendor/cyanogen part when I tried to do something.
 
Upvote 0
Upvote 0
Upvote 0
Did you make sure to verify the file is there? It's possible you deleted it. Let me know.

It's there. I opened it up with gedit and compared it with your source from github.
Screenshot.png
Screenshot.png
https://www.dropbox.com/s/2v6fl5f3yoa98nl/Screenshot.png

I've spent a bunch of time comparing the build/core/product_config.mk, vendor/cyanogen/products/cyanogen_triumph.mk, vendor/cyanogen/vendorsetup.sh, device/motorola/triumph/vendorsetup.sh files. I've also tried to replace some of the folders (build, vindor/cyanogen, and device/motorola/triumph)
Screenshot.png
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones