GIT Commands

Here some general GIT Commands
How to get/show remote URL of cloned repository

git remote show origin 

Pull from remote branch master

git pull origin master 

How to add all changes to git

git add -A 

How to commit changes with message

git commit -m "message here"

How to push changes to master branch

git push origin master 

How to find difference in file

git diff app/helpers.php 

How to git export

git archive master --format=zip --output=/home/user1/ 

How to delete files from git

git rm -f *.DS_Store 

How to show log history

git log -p -2