to start a project use this command
this command is used to check status which file is modification area and which one is in staging area
this command is used to add file to staging area
this command is used to add all the files to staging area
this command is used to remove file from staging area
this command is used to commit the changes
this command is used to see all the commits full version
this command is used to see all the commits in shorter version
to check project at that time (read only)
to go to specific commit. this will show a blue screen asking to name this commit you can close that screen by entering :wq
to permanently delete the commit at the point but will have option to go undo this
to permanently delete the commit at the point and dont have option to go undo this
----------Branches
this is used to see all the branches
this is used to make new branch
this is used to move to branch
this command is used to delete the branch that is merged
this command is used to delete the branch that is not merged
this command is used to make branch and then switch to that branch
/---------------------------------------------------------------------------- ONLINE COMMMANDS /----------------------------------------------------------------------------
sets author name
sets author email id
start new repository
obtain a repository from an existing URL.
adds a file to the staging area.
records or snapshots the file permanently in the version history.
commits any files you’ve changed since then.&commits any files you’ve added
shows the file differences which are not yet staged.
differences between the files in the staging area and the latest version present.
differences between the two branches mentioned.
unstages the file, but it preserves the file contents.
undoes all the commits after the specified commit and preserves the changes locally.
discards all history and goes back to the specified commit.
command lists all the files that have to be committed.
deletes the file from your working directory and stages the deletion.
used to list the version history for the current branch.
lists version history for a file, including the renaming of files also.
shows the metadata and content changes of the specified commit.
used to give tags to the specified commit.
lists all the local branches in the current repository.
creates a new branch.
deletes the feature branch.
used to switch from one branch to another
creates a new branch and also switches to it.
merges the specified branch’s history into the current branch.
used to connect your local repository to the remote server.
sends the committed changes of master branch to your remote repository.
sends the branch commits to your remote repository.
pushes all branches to your remote repository.
deletes a branch on your remote repository.
fetches and merges changes on the remote server to your working directory.
stores all the modified tracked files.
restores the most recently stashed files.
lists all stashed changesets.
discards the most recently stashed changeset.
to create a new branch
to navigate into the named branch
to delete the branch
to merge the branch to current branch in working directory