Git is the most popular version control system as we all know all and used to track and share code between team members but here is our swiss army knife of git commands useful whenever you want them available handy
git config Sets configuration values for your user name, email, gpg key, preferred diff algorithm, file formats and more.
git init Initializes a git repository – creates the initial ‘.git’ directory in a new or in an existing project.
git clone Makes a Git repository copy from a remote source. Also adds the original location as a remote so you can fetch from it again and push to it if you have permissions.
git add Adds files changes in your working directory to your index.
git rm Removes files from your index and your working directory so they will not be tracked.
git commit Takes all of the changes written in the index, creates a new commit object pointing to it and sets the branch to point to that new commit.
git merge Merges one or more branches into your current branch and automatically creates a new commit if there are no conflicts.
git reset Resets your index and working directory to the state of your last commit.
git stash Temporarily saves changes that you don’t want to commit immediately. You can apply the changes later.
git tag Tags a specific commit with a simple, human readable handle that never moves.
git remote Shows all the remote versions of your repository.
git log Shows a listing of commits on a branch including the corresponding details.
git show Shows information about a git object.
git ls-tree Shows a tree object, including the mode and the name of each item and the SHA-1 value of the blob or the tree that it points to.
For any query contact Clofus Innovations.