1. Git repository maintaining our own server
Inside the server we have odoo(base) code,our customized_addone,create
another folder git_repository(whatever name you can give).
open the git_repository and start a module using this command.
sudo get init --bare driver_roster.git
sudo chmod 777 -R customized_addone/ for permission
sudo chmod 777 -R git_repository/ for permission
then you started a repository for the module driver_roster
checkout this one to your local using this command
git clone riyas@192.168.1.123:/opt/server/git_repository /driver_roster.git
add files to it
suppose you added __init__.py,__openerp__.py
if you want to remove the .pyc,files tilde files use the command.
echo "* .pyc" > .gitignore
echo "* ~" > .gitignore
git add .(for adding files to it)
git commit -m "first commit"
git push origin master
again open the server
sudo git clone file:////opt/git_repository/driver_roster.git
this you are done.
if you again need to update changes
just commit and go to server and type git pull.
2.Using bitbucket.com,github.com
first create a account and create a repository using bitbucket.com,github.com.
git clone https://riyas100@bitbucket.org/riyas100/driver_roster.git
then git add .
git commit -m "message"
git push origin master
then clone any where using the git clone https://riyas100@bitbucket.org/riyas100/driver_roster.git
git pull
No comments:
Post a Comment