Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
git pull (remote name) (branch name)
[*]git push
Basicly pull in reverse.
[*]git remote
Your link to the remote branch. I like using the "-v" argument as it shows the remotes. I use this to link me up with SSH[CODE]git remote set-url github git@github.com:MTDEV-CM7/frameworks.git
When I make a change to my cm7, I just go into the file I want and change it. This brakes the repo sync. So, What I did is created two folders. One for me, one for repo. I see a lot of terms like checkout, commit, and the such. I am getting a growing understanding of how this is used.
What I would like, if it's not asking too much, is for people with the familiarity using github to coach me (and anybody else who reads this thread and asks questions) how to properly run this stuff so I won't have to do my dirty methods.
Thank you.
android_dalvik https://github.com/CyanogenMod/android_dalvik.git
android_external_iptables https://github.com/CyanogenMod/android_external_iptables.git
android_frameworks_base https://github.com/CyanogenMod/android_frameworks_base.git
android_hardware_libhardware_legacy https://github.com/CyanogenMod/android_hardware_libhardware_legacy.git
android_hardware_msm7k https://github.com/CyanogenMod/android_hardware_msm7k.git
android_system_core https://github.com/CyanogenMod/android_system_core.git
android_system_netd https://github.com/CyanogenMod/android_system_netd.git
android_packages_apps_Camera https://github.com/CyanogenMod/android_packages_apps_Camera.git
When I make a change to my cm7, I just go into the file I want and change it. This brakes the repo sync. So, What I did is created two folders. One for me, one for repo. I see a lot of terms like checkout, commit, and the such. I am getting a growing understanding of how this is used.
Do I need to make a script that I can run to go in and pull in changes to each report and check me out to the gingerbread branch that I run after each repo sync?
Okay that makes sense. I thought I had went about it the wrong way!!
Okay so make a script that will cd to the repo directory, run git checkout gingerbread, then fetch the upstream changes? And have it do that for all my forked repos? Should I have it merge in the changes as well or do that manually?
echo cd ~/android/triumphics/frameworks/base
cd ~/android/triumphics/frameworks/base
git checkout ics
git fetch cm ics
git merge FETCH_HEAD
You may want to change the thread title to something like "git and github questions" or something like that so if someone is searching, they may find this thread quicker since we're not really talking about programming in this thread.
You mean like if your creating a new repo? Yeah create a repo on github, then move to the directory on your computer you want the repo to be and follow the github directions to turn that inti a gitgub repo.
I was hoping to go the other way around. Take a directory I have on my computer and push that up to github without creating it and going back and forth with git init. I know I messed up a couple of times because I can't sit there and work on it (family first). If I can reduce my steps, then i can improve accuracy.
#git init
#git add .
#git commit -m "Initial commit"
#git remote add origin <put in the url/address of the repo on github here>
#git push origin
You just create a new blank repo on Github first. Then do the following on your computer:
Change to the directory that you want to turn into a git repository. Make sure that that there are no unnecessary files in the directory, for example, do a "make clean" before committing it to git. So assuming you are now in the directory, do the following:
Code:#git init #git add . #git commit -m "Initial commit" #git remote add origin <put in the url/address of the repo on github here> #git push origin
#git init
#git branch <new branch name>
#git checkout <new branch name>
#git add .
#git commit -m "Initial commit"
#git remote add origin <put in the url/address of the repo on github here>
#git push origin <new branch name>
Just to add to that, if you are say building for Gingerbread or ICS you may need to create a branch to tie to your android/default.xml
Code:#git init #git branch <new branch name> #git checkout <new branch name> #git add . #git commit -m "Initial commit" #git remote add origin <put in the url/address of the repo on github here> #git push origin <new branch name>
daddy@ubuntu:~/cm7/device/motorola/triumph$ git push origin master
error: The requested URL returned error: 403 while accessing https://github.com/dsmryder/android_device_motorola_triumph/info/refs
fatal: HTTP request failed
I can't push a file to github.
I have added the remote. I have commited the changes. I have made and switched to a new branch.
I get the following error.Is this me or github's side. I'm going to try to change the remote to git@github to see what will happenCode:daddy@ubuntu:~/cm7/device/motorola/triumph$ git push origin master error: The requested URL returned error: 403 while accessing https://github.com/dsmryder/android_device_motorola_triumph/info/refs fatal: HTTP request failed