Android App

TechLogic
Checking-in code means to upload code to mentioned/required branch repository so that its administrator/reviewer can review the code and finally update/merge the project version.

Checking-out code is the exactly opposite which means to download a copy of code from the repository.
For example, on GitHub, cloning means (nearly similar to) checking-out code and pull request means (nearly similar to) checking-in code.



In Git terms, a "checkout" is the act of switching between different versions of a target entity. The git checkout command lets you navigate between the branches created by git branch. Checking out a branch updates the files in the working directory to match the version stored in that branch, and it tells Git to record all new commits on that branch.

The git checkout command may occasionally be confused with git clone. The difference between the two commands is that clone works to fetch code from a remote repository, alternatively checkout works to switch between versions of code already on the local system.

In Git terms, a "check in" is the act of adding something to versions of a target entity. There is no such git checkin command in git.

git add path/to/file.js // Add local changes
git commit -m 'fixed broken js' // Commit local changes
git push origin branch_name // Push local changes to remote


“Check in” in GIT is something like pushing your local changes to remote branch/repo.

“Check out” in GIT is something like pulling your remote changes to local branch/repo.

Source/links:

Thanks!




Post a Comment