Git
Git is generally utilized in software program improvement for source code management. It is a disbursed version control system, which means that each developer's laptop has got admission to the complete codebase and history, creating branching and joining simply. It is organized to handle a wide scope of jobs with speed and efficiency.
Git allows and facilitates the creation of several local branches completely separate from one another. It just brings seconds to create, merge, and delete.
After the installation of git, you can install any code from git.
Using the below command, you can install git.
sudo apt-get install git
Then you can get the latest development version via Git itself:
git clone https://github.com/git/git
Through Git, we can track the changes in source code. It enables collaboration among several developers.
Basic Git Commands
Create Repositories
Create a local repo -
git init
Make changes
Add a file to staging -
git add
Commit all staged files to git -
git commit
List new or modified files not yet committed -
git status
parallel development
Add a file to staging -
git add
Merge all commits into one new commit-
git merge:
Rebase a branch onto another-
git rebase
sync repositories
Upload local content to the remote repo -
git push
Fetch the remote repo's copy of the current branch -
git pull
add default upstream repo -
git add origin
Odoo Repositories
All code of Odoo is hosted on GitHub. You could put up bugs/issues for strong versions right here. We get the right to access the codes from that repository, whether or not that is a private repo. You can additionally submit Pull Requests to signify a new feature (PR). We will create pull requests in preference to push immediately to GitHub.There are many repositories in Odoo. Let’s see some records on the central repositories of Odoo.
Odoo git It is a public repository that is a community edition of Odoo. Anyone can access the repository to refer to the codes for development.
Odoo Enterprise It is a private repository, an enterprise edition of Odoo. Only the authentic Odoo companions can get entry to the repository.
Odoo Dev It is an ongoing development repository. It's miles a public repository so that everybody can get the right of entry to it.
Odoo releases a new version every year. And there may be one major version and some minor versions. The minor versions are specifically used for the SAAS offerings. The main variations are 13.0, 14.0, 15.0,16.0, and so on. The minor versions like saas-14.1, saas-14.2, and so on. We are able to download the code for a specific version on the corresponding branches