A) Create a local git repo out of your current project directory.
$ cd ~/myproj
$ git init
$ git add .
$ git commit -m "first commit"
B) Create an empty remote git repo and push current project repo there.
$ ssh my.remote.server
> mkdir gitroot
> mkdir gitroot/myproj
> cd gitroot/myproj
> git --bare init
> exit
$ cd ~/myproj
$ git remote add origin ssh://my.remote.server/home/username/gitroot/myproj
$ git push origin master
C) Check out a remote git repo and send updates back.
$ git clone ssh://myserver.com/home/username/gitroot/myproj
$ git push
$ git branch [new-head-name] [reference-to-branching-point]
$ git branch testing HEAD
$ git checkout testing
$ git push origin local-branch-name
$ git checkout master
$ git merge testing
$cd ~/mysvnproj
$ svn export . ../myproj
$find . -name ".svn" -type d -exec rm -rf {} \;
No comments:
Post a Comment