Git - axxia/axxia_yocto_linux_4.9 GitHub Wiki
There are many was to do any of the followoing. This is just one way.
General git knowledge is widely available. If you've never used it, read an overview!
IT won't allow, at least generally, access to remote git repositories. The following works at present.
export proxy="http://135.156.228.210:9400"
export http_proxy=$proxy
export https_proxy=$proxy
export ftp_proxy=$proxy
export no_proxy=lsi.com
export GIT_PROXY_COMMAND=/home/jjacques/scripts/git_proxy_command.sh
git_proxy_command.sh may take some explaination. It is a wrapper for the "connect" command (/workspace/sw/jjacques/apps/src/connect). Make a copy of the source, and build connect. I may change things at any time, and without notice.
Host github.com
ProxyCommand corkscrew 135.156.228.210 9400 %h %p
<Create an Empty Repository in github, Using the Web Interface>
<Clone Locally (Linux or U-Boot for example)>
For U-Boot, use git://git.denx.de/u-boot.git
For Linux, use git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git or one of the Yocto repos, git://git.yoctoproject.org/linux-yocto-3.8 for example. In that clone, do the following.
$ git remote rm origin
$ git remote add origin <github repo>
$ git config master.remote origin
$ git config master.merge refs/heads/master
$ git push origin master
$ git push --tags origin master
$ git config remote.origin.url <https url>
$ git remote add upstream <same as the repo cloned above>
$ git fetch upstream
$ git merge upstream/master
$ git clone [email protected]:lsigithub/lsi_axxia_linux.git
$ git checkout --track -b <local branch name> origin/<remote branch name>
$ git checkout <local branch name>
$ git branch
$ git branch -a
$ git format-patch master --stdout ><patch>
OR
$ git diff master >../<patch file>
$ git checkout <the branch you want to branch from>
$ git branch <new branch>
$ git push origin <new branch>
$ git branch --set-upstream <new branch> origin/<new branch>
$ git add <files to commit>
$ git commit
$ git push
$ git reset --hard
$ git clean -fdx
$ git branch -d <the local branch name>
$ git push origin :<the remote branch name>
$ git branch -m old-branch-name new-branch-name
$ git push origin :old-branch-name
$ git push -u origin new-branch-name
$ git tag -a <tag name> -m <tag description>
$ git tag -d <tag name>
$ git push origin :refs/tags/<tag name>
$ git rebase -i HEAD~N (where N is the number of commits to merge)
<follow the directions...>
$ git commit --amend (to change the final comments)
$ git rebase --continue (to finish)
<Set up "public" as a Remote>
$ git checkout master
$ git push public <branch>
$ git push public --tags
<Make sure you're where you want to be if things go wrong...>
$ git branch <a new branch>
$ git merge <the branch you want to merge changes from>
If the merge went well,
$ git branch -d <a new branch>
If not,
$ git reset --hard <a new branch>
$Revision: 1.1 $
$Date: 2014/03/18 17:01:03 $