Commonly commands in Git

Here are some of the commonly used in Git:

git status – displays modified files and staged files.
git commit – commits all staged files to current remote branch
git log – history of commits in the current branch
git show <commit-number> – displays commit information for a particular commit.
git show-branch – one line summary of current branch
git diff <commit-number1> <commit-number2> – difference of two commits
git mv old-file-name new-file-name – renames a file / directory, retains all commit history.
git clone <repository_name> <workspace_name> – makes a full copy of a repository

This entry was posted in Uncategorized and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s