라벨이 Git인 게시물 표시

[Git] 자주 발생하는 이슈들

하위 디렉토리에 있는 모든 파일 추가 $ git add -f (폴더 이름)/\* $ git add -f ./\* fatal: You have not concluded your merge (MERGE_HEAD exists). Please, commit your changes before you merge. 메시지가 뜨는 경우 Git Bash에 아래 명령어 입력 $ git merge --abort Remote Branch 이름 변경 Local에 있는 Branch 이름 변경 $ git branch -m old_branch new_branch Remote에 존재하는 old_branch 삭제 $ git push origin :old_branch new_branch 푸시하기 $ git push origin new_branch Push 되돌리기 $ git reset --hard HEAD~n (n은 되돌릴 작업의 갯수 ex) git reset --hard HEAD~2) $ git push origin master (암호 입력 요구함) [Git] file name too long 이슈 $ git config --system core.longpaths true

[Git] Repository clone

// Git Bash에서 아래 명령어 실행. git clone (URL) (폴더 이름)

[Git] Remote Branch 이름 변경

1. Local에 있는 Branch 이름 변경 git branch -m old_branch new_branch 2. Remote에 존재하는 old_branch 삭제 git push origin :old_branch 3. new_branch 푸시하기 git push origin new_branch

[Git] Push 되돌리기

git reset --hard HEAD~n (n은 되돌릴 작업의 갯수 ex) git reset --hard HEAD~2) git push origin master (암호 입력 요구함)

[Git] file name too long

git config --system core.longpaths true

[Git] 개념 설명 잘해놓은 사이트

https://nulab.com/learn/software-development/git-tutorial/ http://rogerdudler.github.io/git-guide/index.ko.html