List tracked files. Read more here
Untracks file from index source
Deletes a remote branch
Shows logs in a decorated graph
This checks if any git conflict markers still exists in your code
A git conflict marker is:
<<<<<<< HEAD
bar
=========
barz
>>>>>>> master
git fetch
git checkout -b local_branch_name_to_assign origin/branch_you_want_to_checkout
Note: An individual
--
operator is a git pathspec command.
-
Shows only the names of files with changes
git diff --name-only <commit-to-be-compared with> <commit-used-to-compare>
-
Performing exlusion during a git diff. Read more Here
git diff <commit-to-be-compared with> <commit-used-to-compare> -- . ':(exclude)file/to/exclude.txt'
-
Getting the differences only from a specific folder
git diff branch_1 -- folder/subfolder branch_2 -- folder/subfolder
git tag <tag_name>
creates a tag
-m
adds a message for the tag-a
creates an annotaes the tag with a tag object
git tag -d <tag_name>
deletes specified tag locally
git push --delete origin <tag_name>
deletes specified tag remotely
git push origin <tag_name>
pushes a specific tag to remote
git push --tags
pushes all tags to remote
git branch -vv
Displays all local branches and shows the remote branches they are tracking.
git reset <commits>
Discards commits or number of commits from the HEAD, thus altering Git hitory.
git revert <commit>
Reverses changes of the specified commit by creating a new commit with the inverse of the changes.
git checkout
Checkout only sets the HEAD to one of the commits in history. It does not alter git history.