[Toaster] git push to poky-contrib/ravi

Ravi Chintakunta ravi.chintakunta at timesys.com
Fri Jan 10 09:10:46 PST 2014


I got push access from Michael and pushed a small commit to ravi/all-tasks-feature branch. 

Just a few notes to help others with the first push.

1. Changing the branch name: 
============================
It is good to have the same name for the local branch and the remote branch. If your local branch name is not in the form <yourname>/<branch name> you can rename your current branch by:

git branch -m <yourname>/<branch name>


2. Changing the remote url:
===========================
When you setup your development environment, you would have cloned from a http url like http://git.yoctoproject.org/git/poky-contrib. You will not be able to push to this url and you will get an error like this:

fatal: unable to access 'http://git.yoctoproject.org/git/poky-contrib/': The requested URL returned error: 403


You have to edit the remote url, by first checking the remote alias and url, and then changing the url.

You can view the remote aliases and the url by:

git remote --verbose

>>> This is the output on my machine:
contrib http://git.yoctoproject.org/git/poky-contrib (fetch)
contrib http://git.yoctoproject.org/git/poky-contrib (push)

** Note contrib is my remote alias for poky-contrib


For push, you have to change the url to git at git.yoctoproject.org:poky-contrib 

You can change the url by:

git remote set-url contrib git at git.yoctoproject.org:poky-contrib


After that you will able to push by:

git push contrib <yourname>/<branch name>


Thanks,
Ravi



More information about the toaster mailing list