Changes between Version 11 and Version 12 of Developer/Git/Users
- Timestamp:
- 11/21/13 02:58:22 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Developer/Git/Users
v11 v12 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.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 }}} 35 49 36 50 If you want to switch between local branches: