본문 바로가기

git3

[Git] 하위 디렉토리만 가져오기 Git을 사용하다보면 특정 디렉토리 안에 모든 프로젝트를 넣어두는 경우를 보게 된다. 대표적으로 Google Research도 그런데 https://github.com/google-research/google-research git 안에 수 많은 프로젝트가 한꺼번에 담겨 있다. 그 중 하나의 프로젝트만 가져오려면 아래와 같이 하면 된다. ~$ git clone --depth 1 --no-checkout INSERT_REPO_REMOTE_URL //root folder of the same name is created ~$ cd INSERT_ROOT_FOLDER_NAME/ ~$ git sparse-checkout set INSERT_DESIRED_SUBDIRECTORY_RELATIVE-PATH /* the.. 2023. 10. 19.
[Git] Git에 Push하기 Git에 프로젝트 만들어서 Upload (Push) 하기 위해서는 아래의 절차를 따른다. 1. github.com에서 새로운 repository 생성 (여기서는 Lottery로 지음) 2. Local 에서 해당 Repository에 올릴 디렉토리로 이동해서 아래 수행 > git init > git add . > git commit -m "initial commit" > git remote add origin https://github.com//lottery.git > git branch -M main > git push -u origin main Branch 이름을 main으로 하고 Push한 결과 2022. 4. 18.
[OSS] Jupyter Lab을 Git과 연동하기 Jupyter Notebook은 ML개발에 거의 표준이 되어 있는 듯하다. Jupyter 자체만으로도 거의 완벽하지만, 많은 Extension들은 이용을 더욱 편리하게 해 준다. Git의 내용을 터미널이 아닌 Notebook에서 바로 Clone해서 Commit까지 해줄 수 있는 Jupyter Lab Git Extension도 그런 도구 중에 하나다. 아래에서 자세한 설명을 볼 수 있다. jupyterlab/jupyterlab-git A Git extension for JupyterLab. Contribute to jupyterlab/jupyterlab-git development by creating an account on GitHub. github.com Git Extension을 설치하기 위해서는 .. 2020. 6. 11.