기타
-
git hub [ CRLF , LF ] 오류기타 2023. 3. 20. 23:44
- Git이 줄바꿈 문자를 변경할 것이라는 에러다. 리액트로 movie-app 프로잭트를 공부하다가 vscode 오른쪽 하단에 있는 줄바꿈 문자를 클릭했는지 LF 모드로 작성된 것 같다... windows는 줄바꿈 문자를 CRLF 로 사용하고, unix/linux/macOs 에서는 LF 로 사용하기 때문에 문제가 발생할 수 있다. 줄 바꿈 문자가 호환되도록 git 설정을 할 수 있다. 해당 명령어를 실행하면, git이 윈도우에서 작업한 파일의 줄바꿈 문자를 LF에서 CRLF로 변경해준다.
-
yalco) Git hub기타 2023. 3. 5. 17:55
https://www.youtube.com/watch?v=1I3hMwQU6GU ** Yalco 유투브의 GitHub 무료강의를 정리했다. 1 _ 윈도우 세팅 ** 설치 시 Git Bash를 반드시 포함시킬 것 git config --global core.autocrlf true 협업 시 윈도우와 맥에서 엔터 방식 차이로 인한 오류를 방지 - VS code의 기본 터미널을 Git Bash로 설정 VS code에서 ctrl + shift + p Select Default Profile 선택 Git Bash 선택 ( Git Bash를 C 드라이브에 설치해야 해당 설정이 가능하다 ) ** Git 등 프로그래밍 관련 소프트웨어들은 C드라이브에 설치해야 연계가 원활하다. 2 _ Git의 사용 방식 CLI : 터미널..
-
Nomard) html,css,script 기초(1)기타 2023. 2. 25. 20:09
// 변수 const vari = 1; //배열 const arr = [a , b , c]; arr[1] = g; // const 지만 배열 내부 값은 변경 가능 배열에 요소를 추가하는 방법 arr.push(값) // 객체 const objec = { name: "me", points: 10, boolean1 : true sayHello: function(){} // 객체 내부에 함수 선언 방법 }; // 객체 호출 방법 2가지 console.log(player.name) console.log(player["name"]); objec.sayHello(); ** const는 수정이 불가능한 타입의 선언이지만 const objec 내부의 정보를 수정하는 것은 가능하다 ( objec 자체를 수정하는 것은 불가..