본문 바로가기

CI&CD/Git15

[Git] 내 로컬 pc에서 작업 중인 repo를 깃허브 repo로 올리는 절차 1. Initialize a Git Repository   2. .gitignore 파일 만들어 보안 및 메모리 정리   3. README.md 작성으로 프로젝트 설명  4. GitHub CLI(gh) 설치https://github.com/cli/cli/releases/latest Release GitHub CLI 2.66.1 · cli/cliHotfix: gh pr view fails with provided URL This addresses a regression in gh pr view was reported in #10352. This regression was due to a change in v2.66.0 that no longer allowed gh pr subcommands ...githu.. 2025. 2. 5.
[Git] 브랜치 동기화 이슈 해결하기 목적:  main 브랜치와 dev 브랜치를 일치시키려고 함 상황 :main 문에 이미 commit이 이전에 올라가 있고, dev 브랜치는 이를 받으려고 하는데main commit 내역과 dev commit 내역이 일치하지 않아 문제 발생 ( main 문에는 바로 올리지 말자..)6328fbb (HEAD -> dev) Merge branch 'main' into deva0c3230 (main) Day 42fde97e week 1: merge0c62db5 (origin/dev) week 1 : exampleed0caaf week 1 : reveiw 18bd7692 modify .gitignore for cross platform4692ee9 week 1 : docs updateb221f6f Day 3a587.. 2025. 1. 12.
[Git] 크로스 플랫폼 개발 시 줄바꿈 문자(CRLF/LF) 문제 해결 보호되어 있는 글 입니다. 2025. 1. 5.
[Git] 내 코드 파일 배포 A to Z 1. repository 생성   2.Setting > Developer settings > Personal access tokens > Tokens (classic) > Generate new token repo 관련 접근 허용하고,,    3. 해당 폴더로 가서 git init- .git 디렉토리가 생성- 여기에 저장소의 모든 버전 관리 정보가 저장됩git remote add origin https://[token]@github.com/USERNAME/REPOSITORY.git  확인git remote -v # origin https://github.com/USERNAME/REPOSITORY.git (fetch)# origin https://github.com/USERNAME/REPOSITORY... 2024. 12. 8.
[Git] github 최근 커밋 수정사항 반영: git commit --amend 1. git add ./ 2. git commit --amend  3. ":wq" 명령어(저장 후 나감)로 나가기   4. git push origin main --force 2024. 11. 26.
[Git] window에서 이미 푸시된 커밋을 삭제하는 방법 os: window 11   (How to delete a pushed commit on Windows OS )git push를 했는데 저런.. 파일을 잘못 올려버렸다. 폴더 속 폴더를 올린 것이다.이미 push된 commit 기록은 웹사이트에서 제거할 수 없다.따라서 git을 설치하여 수정하도록 한다. Git - Downloadshttps://git-scm.com/downloads Git - DownloadsDownloads macOS Windows Linux/Unix Older releases are available and the Git source repository is on GitHub. Latest source Release 2.47.0 Release Notes (2024-10-06) Dow.. 2024. 11. 8.