rusnsa.blogg.se

Git bash tutorial
Git bash tutorial












Every commit object has a pointer to the parent commit object. A commit is also named by SHA1 hash code. This is used to store the changes permanently into the Git repository.Ĭommit operation holds the current state of the repository. Push operation copies changes from a local repository instance to the remote repository. The pull operation is used for synchronization between two repository instances. Pull operation copies the changes from a remote repository instance to the local repository. Whenever you make a commit, HEAD is updated with the latest commit. Every branch is referenced by HEAD, which points to the latest commit in the branch. Once the feature is completed, it is merged back with the master branch and we delete the branch. The only time networking gets involved is when the repository instances are being synchronized.īranches are used to create another line of development from the repository's master branch to work on a new feature. Users can perform any operations with this local repository. It acts as mirroring of the complete remote repository. git/refs/heads/" directory.Ĭlone operation creates the local instance of the repository. The heads of the branches are stored in ".

git bash tutorial

HEAD is a pointer, which always points to the latest commit in the branch. It stores references to blobs and trees which are also named as SHA1 hash of the tree object.

git bash tutorial

It also holds blobs as well as other sub-directories. Tree is an object as binary file, which represents a directory. It is a binary file and in Git database, it is named as SHA1 hash of that file. Each version of a file is represented by blob, which holds the file data but doesn’t contain any metadata. Here is a list of some common terms used in Git, which you must know:īlob stands for Binary Large Object.














Git bash tutorial