Generate a new SSH key
ssh-keygen -t ed25519 -C "your_email@example.com"
if the system doesn't support Ed25519
ssh-keygen -t rsa -b 4096 -C "your_email@youremail.com"
| ## | |
| # Reverting a range of commits | |
| # | |
| # git --pretty=oneline --abbrev-commit older_commit..newer_commit # not includes the oldest commit | |
| # git --pretty=oneline --abbrev-commit older_commit^..newer_commit # includes the oldest commit | |
| ## | |
| # just to be sure about the commits, list them | |
| git log --pretty=oneline --abbrev-commit 1f80548^..4b293d5 |
| * text=auto | |
| ###### Git | |
| .gitattributes text | |
| .gitignore text | |
| .gitconfig text | |
| .gitmodules text | |
| ##### Windows | |
| *.bat text eol=crlf |
| public class XmlOrJsonConverterFactory extends Converter.Factory { | |
| final Converter.Factory xml = SimpleXmlConverterFactory.create(); | |
| final Converter.Factory gson = GsonConverterFactory.create(); | |
| @Override | |
| public Converter<ResponseBody, ?> responseBodyConverter( | |
| Type type, Annotation[] annotations, Retrofit retrofit) { | |
| // Retrofit gives us all the annotations so we just need to check | |
| for (Annotation annotation : annotations) { |