Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- topic
- Linux
- while
- mariaDB
- 토픽
- 그랑사가
- C언어
- 환경설정
- ros
- 프로그래밍
- 반복문
- 오늘도 우라라
- 데이터 베이스
- 등차수열
- JungOl
- MSG
- Subscribe
- C++
- ubuntu
- 우분투
- 오늘도 우라라 공략
- 오늘도 우라라 펫 공략
- 리눅스
- 우분투-윈도우즈
- 마리아 DB
- 기초
- LeetCode
- 오늘도 우라라 펫
- publish
- mysql
Archives
- Today
- Total
하루의 쉼터
[Git] 이미 있는 디렉토리 신규 브런치 업로드 본문
반응형
1. git init
2. .gitignore 작성 ( 선택 )
3. git add . (커밋할 내용 add 하면 됨 .은 전부 업로드)
4. git commit -m "commit message"
5. git remote add origin [git url]
6. git brach [branch name]
* 임시 브런치를 만들던지, 원격 저장소에 있는 브런치를 통하여 업로드 진행(선택)
7. git checkout [branch name]
8. git pull origin [원격 branch name] --allow-unrelated-histories
* conflict 조심
9. git push -u origin [branch name]
* 없는 경우
git push --set-upstream origin [branch_name]
반응형
'프로그래밍 > Git' 카테고리의 다른 글
[Git] 비어있는 branch 생성 및 머지 (0) | 2023.04.17 |
---|---|
[GitClient] Smart Git 설치 - Ubuntu 20.04 (0) | 2022.10.12 |
[Git] 특정 브랜치 클론 (0) | 2022.10.04 |
[Sourcetree] github clone error (유효한 소스 경로/URL이 아닙니다.) remote: Support for password authentication was removed on... (4) | 2022.01.18 |
Comments