Initial page
Mastering Git
Git is a free open source distributed version control tool that tracks changes in your file. As a developer believe me you need it more than anything else ('Just kidding 😛'). But its important.
Git Terminal commands
Here is a cheat sheet of commands you might find useful and come to love:
-sets a name identifiable for credit when reviewing version history
-set an email address associated with the version history
-set automatic coloring of git in the command line
-initialize a local directory on you computer as a git repository
-retrieve a repository from a central remote hosting
-show modifications on the working tree
-add the named file to the staging area
-adds all tracked files to the staging area
-unstage a file but retains changes in the working directory
-shows changes between commits,commit and working tree
-show changes made to a file in the staging area
-commits your staged content as a new commit snapshot
-creates a new branch
Branches enables you to isolate your changes and context and integrate them together when you're ready*
-lists all your branches
-switches to the named branch
-merge the specified branch with the current one
-shows all commits in the current branch
-shows commits on branchA that are not on branchB
-shows commits that changed a file,even if it was renamed
-shows changes that are in branchA and not in branchB
-shows any object in git in human-readble format
-removes the file from the project and stage the change
-changes an existing path and stage the move
-shows all commits log and paths changed
-add a remote git url to your local repository
-fetch all the branches from a central remote repositoy
-merge a remote branch into your current one locally
-transmit local branch to the remote repo branch
-fetch and merge any commits from the remote tracking branch
-apply any commits on current branch ahead of specified one
-clear staging area,rewrite working tree from specified commit
-save modified and staged changes
-list stack order of stashed file changes
-write working from top of stash stack
-discard changes from top of stash stack
Last updated