Development Book V17: 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

To retrieve the latest development version using Git, employ the following command:

git clone https://github.com/git/git 

Git allows for effective tracking of changes in source code, fostering collaboration among multiple 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
whatsapp_icon
location

Calicut

Cybrosys Technologies Pvt. Ltd.
Neospace, Kinfra Techno Park
Kakkancherry, Calicut
Kerala, India - 673635

location

Kochi

Cybrosys Technologies Pvt. Ltd.
1st Floor, Thapasya Building,
Infopark, Kakkanad,
Kochi, India - 682030.

location

Bangalore

Cybrosys Techno Solutions
The Estate, 8th Floor,
Dickenson Road,
Bangalore, India - 560042

Send Us A Message