git add .
git status
git diff
git commit
# To stop tracking a file, remove it from the index
# Display checkin details
# p4 describe
git log
# p4 revert
git remote add origin https://vjonnak@bitbucket.org/vjonnak/mdm.git
git push -u origin master
# To verify
git remote -v
git pull
## To amend the author of checked in code
git config --global user.name "Name"
git config --global user.email "< email id >"
git commit --amend --reset-author
# Normal flow
git pull
git add
git commit
git push -u origin master
git status
git diff
git commit
# To stop tracking a file, remove it from the index
git rm --cached <file>
git rm --cached -r .
# Display checkin details
# p4 describe
git log
# p4 revert
git checkout --
# Modify previous commit, change message,add/delete files
git commit --amend
# p4 sync
git pull## Push and pull from remote location - bitbucket
git remote add origin https://vjonnak@bitbucket.org/vjonnak/mdm.git
git push -u origin master
# To verify
git remote -v
# Pull the repository git pull
## To amend the author of checked in code
git config --global user.name "Name"
git config --global user.email "< email id >"
git commit --amend --reset-author
# Normal flow
git pull
git add
git commit
git push -u origin master