'git'에 해당되는 글 5건

  1. 2020.03.27 git config
  2. 2020.03.27 git check error(git checkout did not match any file(s) known to git)
  3. 2020.02.18 Git remove pushed file
  4. 2020.02.17 Git undo push
  5. 2020.01.03 Github commit

git config

개발/개발도구 2020. 3. 27. 14:39

config 목록

$git config --list

 

config 설정

$git config --global user.name "이름"

$git config --global user.email "xxx@xxx.com"

 

 

 

 

Posted by Lumasca
,

git checkout 할때 신규 브랜치인 경우 안되는 경우가 있다.

 

리모드 브랜치 최신정보로 업데이트한다.

$git remote update

'개발 > 개발도구' 카테고리의 다른 글

git config  (0) 2020.03.27
Jenkins 빌드후 이벤트 Publish over SSH 설정  (0) 2020.03.11
Jenkins Plugin Manager SSLHandshakeException  (0) 2020.03.10
Git remove pushed file  (0) 2020.02.18
Git undo push  (0) 2020.02.17
Posted by Lumasca
,

파일

$git rm --cache $filename

폴더

$git rm --cache -r $foldername

커밋

$git commit -m "Remove file"

푸시

$git push

'개발 > 개발도구' 카테고리의 다른 글

Jenkins 빌드후 이벤트 Publish over SSH 설정  (0) 2020.03.11
Jenkins Plugin Manager SSLHandshakeException  (0) 2020.03.10
Git undo push  (0) 2020.02.17
Github & Jenkins 연동  (0) 2020.02.17
SQLiteSpy  (0) 2009.09.27
Posted by Lumasca
,

Git undo push

개발/개발도구 2020. 2. 17. 17:54

초기화

$git reset --hard $commit_version

 

강제 푸시

$git push -f origin master

 

 

'개발 > 개발도구' 카테고리의 다른 글

Jenkins 빌드후 이벤트 Publish over SSH 설정  (0) 2020.03.11
Jenkins Plugin Manager SSLHandshakeException  (0) 2020.03.10
Git remove pushed file  (0) 2020.02.18
Github & Jenkins 연동  (0) 2020.02.17
SQLiteSpy  (0) 2009.09.27
Posted by Lumasca
,

Github commit

개발/Dev Others 2020. 1. 3. 14:04

1. GitHub에서 새 repository를 생성한다.

 

2.command shell에서 로컬 프로젝트 폴더로 이동한다.

 

3.Git repository로 로컬 폴더를 초기화한다.

$git init

 

4. .gitignore 파일을 생성해서 Android 관련 내용을 작성한다.

$vi .gitignore

 

5.로컬 repository에 있는 파일을 추가한다. 현재 수정한 파일을 커밋하기 전 단계인 stage 상태(중간단계)가 된다.

$git add .

 

6.로컬 repository에 stage 상태의 파일들을 커밋한다.

$git commit -m "커밋 메세지"

 

7.원격 repository용 URL을 추가한다.

$git remote add origin $REMOTE Git URL

 

8. 원격 repository에 push한다.

$git push -u origin master

 

push 안되면 강제로

$git push -f origin master

'개발 > Dev Others' 카테고리의 다른 글

Mac 키보드 키 매핑 앱 - Karabiner  (0) 2021.07.02
Shell 에서 excutable Jar 만들기  (0) 2020.03.26
MySQL Config  (0) 2017.07.04
파이어폭스 한글입력 오류  (0) 2016.09.13
PHP for IIS 설치  (2) 2009.11.22
Posted by Lumasca
,