Thursday, June 25, 2015

Override local changes with Git

For all SVN users like me, Git is great but a little bit more complex than all stuffs. Imagine, you want to get code from your remote repo and override your local changes (everything your commited on your local repo). This can be done in two step :
  1. Reset your local repo with last fetched head : git reset --hard FETCH_HEAD
  2. Then update local repo with remote one and merge changes : git pull
Hope that could save your day! 

How to secure your REST API with Java Spring Security

Here is the best article I read on how to secure REST API and even make a full stateless architecture by using JWT token to store all user d...