Changes between Version 12 and Version 13 of Developer/Git/Users


Ignore:
Timestamp:
11/21/13 03:15:44 (10 years ago)
Author:
JoelSherrill
Comment:

/* Using the GIT Repository */

Legend:

Unmodified
Added
Removed
Modified
  • Developer/Git/Users

    v12 v13  
    3333}}}
    3434This will create a local branch named "rtems410", containing the rtems-4.10 release, that will track the remote branch "rtems-4-10-branch" in origin (git://git.rtems.org/rtems.git). The 'git branch' command prints a list of the current local branches, indicating the one currently checked out.
    35 
    36 Another way to do this which pushes directly to the upstream is shown here in an example which simply (and quickly) applies a patch to the branch:
    37 
    38 {{{
    39 git checkout -b rtems4.10 --track remotes/upstream/4.10
    40 cat /tmp/sp.diff | patch
    41 vi sparc.t
    42 git add sparc.t
    43 git commit -m "sparc.t: Correct for V8/V9"
    44 git push upstream rtems4.10:4.10
    45 git checkout master
    46 git log
    47 git branch -d rtems4.10
    48 }}}
    4935
    5036If you want to switch between local branches: