Computer Programming 98

TIL_github에 있는 폴더 git 명령어로 삭제 방법

팀으로 웹페이지를 만들다보니 venv와 같은 가상폴더는 다른 사람의 컴퓨터에서는 작동이 제대로 되지 않기 때문에 github에서 제외 되어야 한다. git bash command로 github에 있는 특정 폴더를 삭제하는 방법을 찾아보았다. 우선, .gitignore이라는 폴더를 생성했다. gitignore.io라고 하는 웹사이트에서 'python, visual studio, macos'라고 치고 자동으로 생성되는 내용을 복사하여 local에 '.gitignore'이라는 파일을 생성하고 좀 전에 복사한 내용을 붙여넣는다. 그리고 저장. git bash에서 git rm --cashed -r *--cached를 넣어야 원격 저장소에서만 삭제 됨. 안 넣으면 원격 저장소, 로컬 모두 삭제 됨. git comm..

TIL_Github에 code upload

4주차 정도 웹 기초 강의를 듣고 드디어 뼈대가 될 코드 파일을 github에 upload 했다. 전에 ssh 설정을 마쳤으므로 vs code에서 git bash를 이용하여 간단히 코드를 올릴 수 있었다. 내 컴퓨터에 저장된 코드를 github에 올릴때, 아래와 같은 코드를 복사하면 된다. git remote add origin git branch -M main git push -u origin main vs code의 git bash에 코드를 입력한다. settings에서 collaborator로 팀원들을 초대한 후, 팀원들은 이 코드를 다운 받는다. git clone 이제 각자 새로운 branch를 생성하여 작업한다. git branch git switch detailpage 작업을 업로드 하고 싶다..

TIL_Python

사전캠프 없이 프로그램에 바로 참여했기 때문에 어제와 오늘은 강의 듣기로 바쁘다. folder 생성 => app.py file 만들기 => git bash terminal에서 'python -m venv venv'를 입력하여 라이브러리들을 넣을 venv(가상환경)라는 folder를 생성 => Python 3.10.4('venv':venv)로 잡아주기 => 'pip install flask' => flask 시작 코드 from flask import Flask app = Flask(__name__) @app.route('/') def home(): return 'This is Home!' if __name__ == '__main__': app.run('0.0.0.0',port=5000,debug=True)..

TIL_Git과 Github

특강으로 git과 github의 뜻과 사용법에 대해 배웠다. 많은 회사에서 협업 툴로 쓰이기 때문에 열심히 듣고 내용을 정리하였다. git: 버전 관리 도구, 코드 변경점 기록 github: online code storage, 공유(내 코드를 온라인에 백업하거나 다른 사람과 협업하는 도구) 협업 할 때 전체적인 흐름 대표자가 기본적인 틀을 만들고 github에 올림 => 팀원들이 대표자 github의 collaborator로 등록 => 팀원들은 원하는 폴더 위치에서, git clone . => git branch => git switch => 작업 => git add . => git commit -m "hello.html 코드 수정" => git push origin => (pu..

React-Native Error Case(firebase, responder.scrollResponderScrollTo)

Error Message TypeError: responder.scrollResponderScrollTo is not a function. (In 'responder.scrollResponderScrollTo({ x: x, y: y, animated: animated })', 'responder.scrollResponderScrollTo' is undefined) Solution I got this error once I try to connect to firebase to implement the signIn function. And I got the solution from the link at: https://stackoverflow.com/questions/71709482/typeerror-res..

React-Native Error Case(ViewPropTypes)

Error Message Invariant Violation: ViewPropTypes has been removed from React Native. Migrate to ViewPropTypes exported from 'deprecated-react-native-prop-types'. Solution If you got the error even though you're not using ViewPropTypes. In this case, you can try to comment the function out in 'node_modules>react-native>index.js' file. ViewPropTypes를 사용하지도 않았는데 위와 같은 에러가 떴다면 'node_modules>react-na..

LIST