'프로그램 사용/Version Control'에 해당되는 글 130건

  1. 2019.01.29 git branch
  2. 2019.01.16 git 윈도우 자격증명 관리
  3. 2018.12.07 git tag
  4. 2018.11.02 git log . - 현재 디렉토리 이하의 변경내역 보기
  5. 2018.10.22 .gitignore
  6. 2018.10.22 git 리비전 이동 후 pull 안되는 문제
  7. 2018.10.18 git 리비전 돌아 다니기
  8. 2018.09.20 git 상태 다시 읽기
  9. 2018.09.06 git 원격지 주소 변경하기
  10. 2018.09.05 git archive (svn export)

브랜치 다시 도전.. ㅠㅠ

저번에 쓴건 먼가 운영을 잘못한 느낌이네..


[링크 : https://www.zerocho.com/category/Git/post/582342a73fbde700178771f5]

[링크 : https://www.zerocho.com/category/Git/post/582df1c8d349570018107477]

Posted by 구차니

계정이 잘못 입력되면

다른 명령어로 할게 아니라

윈도우에서 자격 증명 가서 "Windows 자격 증명"에서 삭제하면 된다.



[링크 : https://code.i-harness.com/ko-kr/q/eab2ce]

'프로그램 사용 > Version Control' 카테고리의 다른 글

gitlab 서비스 명(centos)  (0) 2019.02.15
git branch  (0) 2019.01.29
git tag  (0) 2018.12.07
git log . - 현재 디렉토리 이하의 변경내역 보기  (0) 2018.11.02
.gitignore  (0) 2018.10.22
Posted by 구차니

svn 이랑은 또 개념이 달라서 한참을 봐야 할듯..

걍 branch랑은 다르게 편하게 좀 쓸 수 있을것 같기도 하고..


[링크 : https://git-scm.com/book/ko/v1/Git의-기초-태그]

Posted by 구차니

의외로 싱겁네 -_-

콘솔에서 자주 이용하는데 매번 너무 길게 나와서 불편했는데..


[링크 : https://stackoverflow.com/.../how-to-show-git-log-history-for-a-sub-directory-of-a-git-repo]

'프로그램 사용 > Version Control' 카테고리의 다른 글

git 윈도우 자격증명 관리  (0) 2019.01.16
git tag  (0) 2018.12.07
.gitignore  (0) 2018.10.22
git 리비전 이동 후 pull 안되는 문제  (0) 2018.10.22
git 리비전 돌아 다니기  (0) 2018.10.18
Posted by 구차니

머.. 거장한것 없이 프로젝트 최상위 폴더에

.gitignore로 생성하고

상위 폴더 경로나 특정 파일명 혹은 *을 포함해서 적어주면 된다.


[링크 : https://nesoy.github.io/articles/2017-01/Git-Ignore]


+

vscode에서 최상위 프로젝트 파일에다가 설정해주니 하위에서도 정상적으로 gitignore가 적용된다.

걍.. 폴더로 무시하는게 답이었던 듯..

$ cat .gitignore

node_modules/ 

[링크 : http://trend21c.tistory.com/1471]

Posted by 구차니

git pull 하다 보니 에러가 나서 확인하려고 보는데

detached branch 라던가

You are not currently on a branch 이라던가 나오는데


생각해보니 구버전으로 잠시 돌려놓았던 것이 문제..

아무튼 결론(?)은 master로 돌리고 나서 손을 보면 된다?


[링크 : https://okky.kr/article/437352]

[링크 : https://blog.npcode.com/2012/09/02/git-pull-할-때-옵션-안줘도-알아서-되게-하기/]

[링크 : http://sunphiz.me/wp/archives/2266?ckattempt=1]

[링크 : https://stackoverflow.com/...-currently-on-a-branch-error-when-trying-to-sync-fork-with-upstream]


+

2018.10.23

$ git branch

* (detached from 7ea96f5)

  master

$ git checkout master

Switched to branch 'master'

Your branch is behind 'origin/master' by 3 commits, and can be fast-forwarded.

  (use "git pull" to update your local branch) 


'프로그램 사용 > Version Control' 카테고리의 다른 글

git log . - 현재 디렉토리 이하의 변경내역 보기  (0) 2018.11.02
.gitignore  (0) 2018.10.22
git 리비전 돌아 다니기  (0) 2018.10.18
git 상태 다시 읽기  (0) 2018.09.20
git 원격지 주소 변경하기  (0) 2018.09.06
Posted by 구차니

checkout을 이용해서 특정 리비전을 돌아 다닐수 있다.

예전에 branch 오가던 느낌이네..


git checkout HEAD~10

git checkout master 

[링크 : https://mytory.net/archives/10078]

'프로그램 사용 > Version Control' 카테고리의 다른 글

.gitignore  (0) 2018.10.22
git 리비전 이동 후 pull 안되는 문제  (0) 2018.10.22
git 상태 다시 읽기  (0) 2018.09.20
git 원격지 주소 변경하기  (0) 2018.09.06
git archive (svn export)  (0) 2018.09.05
Posted by 구차니

가끔(?) status 하면 새로 추가되거나 수정된 파일이 안뜰때가 있는데

이거 해주면 새로 읽어서 status에 뜨게 해준다.


$ git update-index --again 

[링크 : https://stackoverflow.com/questions/10006462/refresh-staged-files]

'프로그램 사용 > Version Control' 카테고리의 다른 글

git 리비전 이동 후 pull 안되는 문제  (0) 2018.10.22
git 리비전 돌아 다니기  (0) 2018.10.18
git 원격지 주소 변경하기  (0) 2018.09.06
git archive (svn export)  (0) 2018.09.05
git rm 복구하기  (0) 2018.08.22
Posted by 구차니

git remote set-url origin을 통해서 변경함

 

$ git remote -v
$ git remote set-url origin https://github.com/user/repo2.git 

 

[링크 : http://minsone.github.io/git/github-managing-remotes-changing-a-remotes-url]

 

+

23.11.13

기존 리포지토리 remote 제거
git remote remove origin

새 리포지토리 remote 추가
git remote add origin https://github.com/계정/리포지토리

[링크 : https://gist.github.com/480/4681b67d2a906db8c6c1321cc678f05f]

'프로그램 사용 > Version Control' 카테고리의 다른 글

git 리비전 돌아 다니기  (0) 2018.10.18
git 상태 다시 읽기  (0) 2018.09.20
git archive (svn export)  (0) 2018.09.05
git rm 복구하기  (0) 2018.08.22
git branch  (0) 2018.08.22
Posted by 구차니

svn export 하면 다른 디렉토리로 사본을 복사해주었는데

git에도 있을 것 같아서 찾아보니 git archive로 존재


[링크 : https://stackoverflow.com/questions/160608/do-a-git-export-like-svn-export]



git archive --format zip --output /full/path/to/zipfile.zip master  

[링크 : https://gist.github.com/kristofferh/1442717]

[링크 : https://git-scm.com/docs/git-archive]

'프로그램 사용 > Version Control' 카테고리의 다른 글

git 상태 다시 읽기  (0) 2018.09.20
git 원격지 주소 변경하기  (0) 2018.09.06
git rm 복구하기  (0) 2018.08.22
git branch  (0) 2018.08.22
git add / reset / checkout  (0) 2018.08.22
Posted by 구차니