File tree 5 files changed +17
-8
lines changed
5 files changed +17
-8
lines changed Original file line number Diff line number Diff line change 1
- #NBDN - Munich - April 2011
1
+ #Develop With Passion - Denver 2011
2
2
3
3
Prep work for the course!!
Original file line number Diff line number Diff line change @@ -31,9 +31,15 @@ def choose_remote(remotes)
31
31
end
32
32
33
33
def update_to_latest_branch_on ( remote_name )
34
- `git add -A;git commit -m "Updated"`
35
- `gitrb checkout master`
36
- `gitrb pull #{ remote_name } #{ get_latest_remote_branch_name ( remote_name ) } true`
34
+ `git add -A`
35
+ `git commit -m "Updated"`
36
+ `git checkout master`
37
+ latest_branch = get_latest_remote_branch_name ( remote_name )
38
+
39
+ new_branch = "pull_#{ remote_name } _#{ latest_branch } "
40
+ `git checkout -b #{ new_branch } `
41
+ `git checkout #{ new_branch } `
42
+ `git pull #{ remote_name } #{ latest_branch } `
37
43
end
38
44
39
45
remote_name = choose_remote ( get_all_available_non_origin_remotes )
Original file line number Diff line number Diff line change 1
- #!/usr/bin/env ruby
2
-
3
- `git add -A;git commit -m "Updated"`
4
- `gitrb push origin master`
1
+ git add -A
2
+ git commit -m "Updated"
3
+ gitrb push origin master
Original file line number Diff line number Diff line change
1
+ %w[ lmjerome kskrocki jpacelli zempd romanpy JerryGoodman JohnL4 jdyer100 MrChopstik aashishmodi divihari jdhague stanleygu judyk davidkrauss BruceInnes ] . each do |name |
2
+ `git remote add #{ name } git://github.com/#{ name } /ascriptsp.git`
3
+ end
Original file line number Diff line number Diff line change
1
+ gitrb reset
You can’t perform that action at this time.
0 commit comments