본문 바로가기

Dev. Tools

Git: Commit History 초기화 공개 Repository를 사용하다며본 자칫 민감한 정보가 코드에 적혀 공개되는 경우가 생긴다. 이런 경우 다음과 같은 두가지 작업이 필요할 수 있다. 마지막 Commit 취소 후 Push # 마지막에 실행한 commit을 되돌림 $ git reset HEAD^ # 새로운 내용으로 다시 commit 진행 $ git commit -m "new commit message" # 서버로 강제 push # git push origin master -f Commit History 초기화 Git 초기화 # git 삭제 $ rm -rf .git # git 생성 $ git init $ git add -A $ git commit -m "First Commit" $ git remote add origin [저장소 URL] .. 더보기
Maven에서 Gradle로 갈아타기 오픈소스를 다운 받았는데 프로젝트가 Maven으로 구성되어 있다면, 그리고 나는 Gradel이 더 익숙하다면? pom.xml 파일을 build.gradle 파일로 변환하는 방법을 알아야 할 것이다. # pom.xml 파일 위치에서 실행하면 현재 Dir에 build.gradle 파일이 생성된다. $ gradle init --type pom 더보기
Gson 사용법 (in Java) JSON(JavaScript Object Notation) 소개 Object를 인간이 읽을 수 있는 텍스트로 표현하는 방법 (Attribute-Value 방식) Attribute name: String Only Value: String, Number(e.g., int, float), Boolean, Null and Array of them. JSON String 예제 # ex1 {"name":"dong"} # ex2 { "name":"dong", "publicKey":["Base64String", "HexString"], "index": 1 "signature": { "algo":"ECDSA", "curveParams":"secp256k1" } "isSet": true } 장점 쉽다. 범용성: 대부분의 .. 더보기
Project Naming on IntelliJ: groupId, artifactId, version 다음 내용은 Apache Maven Project의 "Guide to naming conventions on groupId, artifactId, and version"을 발췌한 내용이다. Link: https://maven.apache.org/guides/mini/guide-naming-conventions.html 사실 내가 Intellij를 사용해서 제목을 위와 같이 지었을뿐, Intellij와 무관한 Maven Project Naming rule이다. groupId groupId will identify your project uniquely across all projects, so we need to enforce a naming schema. It has to follow the packag.. 더보기