git log
git commit -am "Commit Name"
git remote add origin http//........
git branch -a
git branch -l
git branch
git branch branch-name
git branch -d branch-name
git push origin --delete branch-name
git checkout -b [branch name]
git diff one-commit-ID two-commit-ID
git rm [file]
git checkout -f
git reset --hard HEAD~1
git reset --hard <sha1-commit-id>
git remote set-url origin git@hostname:USERNAME/REPOSITORY.git
git tag <tag_name>
git tag -a <tag_name> -m "message"
git tag
git tag -n
git tag <tag_name>
git push --tags
git tag <tag_name> <commit_sha>
git tag <tag_name> HEAD
(for the last commit)
git tag <tag_name> HEAD~1
(for the commit before HEAD)
git checkout tags/<tag_name> -b <branch_name>
git fetch --all --tags
git fetch --tags
git tag -d <tag_name>
git push --delete origin tagname
git push origin source-code
git checkout dev
git pull origin dev
git merge source-code
fixing merge conflict
git commit -am "something"
git push origin dev
git stash
(Remonve all un-commit data)
git stash pop
(Get Stash data)
git stash clear
(Remonve all Stash data)