Useful Git Commands
Follow the instructions to set up SSH key for Github.
View existing global configurations
Set global configuration for user name and user email address.
Global Configurations are stored in ~/.gitconfig
Pull remote git repo
View the remote url
View remote references
Add all changes to local cache
If you want to undo changes to local repo
$ git reset
View the status
Commit changes to the git local repo
Push the change to remote location
Rebase the branch: put the local changes on top of the remote repo. It is a popular technique to merge the local and remote changes.
Git ignore the eclipse files
Adding git to an existing project and merge the existing components to current project.
Overwrite local with remote copy