본문 바로가기

나의 FE피봇이야기/git || github

(6)
[ git/clone ] git 클론 하기(특정 브런치 가져오기) git clonegit clone -b  git clone: This is the main command for cloning a Git repository.: This is the URL of the remote repository you want to clone from.-b : This option specifies the branch you want to clone. (optional): This is the name of the local directory where you want to clone the repository. 예시git clone https://github.com/user/repository.git -b feature-branch my-local-repository  특정 ..
[git] a new branch bash 에서 github branch 만들기    작업폴더에서 GitBash 오픈 (Windows경우 파란색 글씨의 master표시 확인)     1. git branch (생성할 브랜치이름)         - 브랜치 생성    2. git checkout (생성한 브랜치이름)         - 생성한 브랜치로 전환        - 2번의 브랜치이름과 동일해야 한다.    3. git push        - 원격 저장소에 반영하기        - 2,3의 브랜치이름과 동일해야 한다. 4. git push --set-upstream origin hella-dev    - 원격 저장소 동기화 시키기 참조 https://github.com/TheCopiens/algorithm-study/blob/mast..
[github branch] git bash로 git hub branch 만들기 github에 연결 이후 new branch를 새롭게 생성 후 연결하는 것까지. git remote add origin URL git checkout -b homeLib # 로컬 브런치를 만들기 git add . # Add all changes to the staging area git commit -m "Initial commit for homeLib branch" # Commit changes with a message git push --set-upstream origin homeLib # Push to the remote branch and establish tracking #로컬 브런치가 remote branch와 동일한 이름으로 트래킹 되기 시작함 git push --set-upstream o..
[git] git (working Directory / Staging Area / Repository)작업하기 업데이트 일자(2024.01.30) 완전한 이해를 바탕으로 작성된 글이 아님으로 사전에 언급드립니다. 이 글은 드림코딩 영상을 참조하여 작성한 글입니다. 개인적으로 GIT 초보자가 가져야 할 Diagram 이라고 생각한다. git과 git hub는 다르다. git은 Local 저장소라 불리며, 3가지 단계로 나줘져 있다. git add 파일명 -untracked 파일 추가 staged modified 내용 수정이 이뤄지면 다시 add 를 통해서 staging area로 이동 시켜줘야 함 git rm --cached (파일명) staged를 add *과 add. 구분하기 add*하고 다시 a.txt 파일 삭제 하면 a.txt 삭제한 내용을 반영하지 못함( status) add.은 a.txt가 삭제된 상황까..
[Git] git과 github set 하기 업데이트 일자(2024.04.30)완전한 이해를 바탕으로 작성된 글이 아님으로 사전에 언급드립니다. 개인적으로 GIT 초보자가 가져야 할 Diagram 이라고 생각한다.git과 git hub는 다르다.git은 Local 저장소라 불리며, 3가지 단계로 나줘져 있다.    만약 이미 github에 만들어진 데이터를 복사할려면 아래의 URL에 들어가서 'git clone [github URL]' 복사https://angelplayer.tistory.com/222 [Github] Github 저장소(Repository) 생성 & 초기 설정Repository(저장소) 생성하기 github에 접속하여, Repositories 탭으로 이동하면 [New] 버튼이 있습니다. New 버튼을 누르면 새로운 Reposito..
[git bash] local <--> remote 데이터 전송하기 ☆Github 저장소를 로컬 git에서 별칭으로 만들어 관리하기 1. github 와 연결 $ git remote add origin(별칭) github's URL(내가 앞으로 올릴 repository URL) 2. Local git 에서 remote github로 $ git remote push origin(별칭) main(git hub default branch name) ※ 주의 Local과 remote의 데이터 상태가 동일하지 않을 경우 push가 불가능. 따라서 pull을 통해서 local === remote 데이터 상태를 동일화 시킨후 push 가능 url. Basic concept master(main) = local repository orgin/master(main)[보통 최신 버전을 가..