-
Notifications
You must be signed in to change notification settings - Fork 485
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implementing method to push new git repo to github
- Loading branch information
James
committed
May 4, 2008
1 parent
0092900
commit 635c136
Showing
2 changed files
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
module Svn2Git | ||
module GitHub | ||
|
||
# TODO | ||
def self.push(migration, options = {}) | ||
|
||
dir = migration.dir | ||
run = "cd #{dir} &&" | ||
`#{run} git remote add origin [email protected]:#{options[:to]}.git` | ||
`#{run} git push origin master` | ||
`#{run} git push --all` | ||
`#{run} git push --tags` | ||
end | ||
|
||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters