Changes between Version 12 and Version 13 of Developer/Git/Users
- Timestamp:
- 11/21/13 03:15:44 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Developer/Git/Users
v12 v13 33 33 }}} 34 34 This 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.1040 cat /tmp/sp.diff | patch41 vi sparc.t42 git add sparc.t43 git commit -m "sparc.t: Correct for V8/V9"44 git push upstream rtems4.10:4.1045 git checkout master46 git log47 git branch -d rtems4.1048 }}}49 35 50 36 If you want to switch between local branches: