| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
Tags
- 환경변수
- springboot
- SpringSecurity
- 웹개발
- 스프링시큐리티
- 스프링부트 #springboot #project #Intellij
- tcping
- sqldeveloper
- development
- mysql
- Maven
- undefined
- RESTful
- Database
- SpringInitializer
- mssql
- Developer
- oracle
- postman
- Web
- apache
- IntelliJ
- restapi
- Tomcat #SpringFramework
- ojdbc
- springboot #controller #jsp
- 스프링부트
- HATEOAS
- Oracle11g
- install
Archives
- Today
- Total
여백에 도장 찍기
Git - Repository add & remove 본문
Git Repository Adding - Existing folder
폴더가 존재할 경우 git repository에 폴더를 추가하는 과정은 다음과 같다.
# cd my_folder
# git init
# git remote add origin https://git_repo_url
# git add .
# git commit -m 'initial commit'
# git push -u origin master
* push 했을 때 다음과 같은 에러가 발생할 수 있다.
error: The requested URL returned error: 401 Unauthorized while accessing https://git_repo_url/info/refs
fatal: HTTP request failed
> 이는 centos6에서 git version이 1.7이어서 발생하는 문제이므로, git version을 upgrade 시켜서 해결할 수 있다.
> CentOS git version 2.x upgrade 위해 rpm을 설치하여 yum에 repository를 더해주고 git 재설치를 진행한다.
# rpm -Uvh http://opensource.wandisco.com/centos/6/git/x86_64/wandisco-git-release-6-1.noarch.rpm
# yum install -y git
# git --version
git version 2.18.0
Git Repository Remove folder
Repository에 존재하는 folder를 지우고자 할 때 (하위 폴더 모두 삭제)
git rm -r one-of-the-directories
git commit -m "directory"
git push origin master
'VCS > Git ' 카테고리의 다른 글
| [IntelliJ] GitHub에 Project 올리기 (0) | 2019.07.12 |
|---|---|
| Git Submodule (0) | 2019.03.06 |
| git - ssl connection error 해결 (0) | 2019.02.22 |
| Git SSL Connection (0) | 2019.01.21 |
| Git - Private Token 이용하여 파일 전송 (0) | 2018.12.06 |
Comments