
#Git bash tutorial pdf how to#
How to Commit by using an existing commit message (opens editor)?.
#Git bash tutorial pdf Patch#

#Git bash tutorial pdf update#
How to Update the index by adding new files that are unknown to the index?.How to Update the index just where it already has an entry matching filepath?.How to Pick and choose lines of the patch to apply?.How to Interactively choose hunks of patch between the index and the work tree?.How to Update specific files in the entire working tree?.How to Update all files in the entire working tree?.How to Add specific file(s) or directory to the index?.How to Fetch from a specific remote branch?.How to Fetch all branches from remote repository?.How to Delete a local branch (forcefully)?.


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 ".

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. 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.
