…or create a new repository on the command line echo "# test" >> README.md git init git add README.md git commit -m "first commit" git branch -M main git remote add origin 깃헙주소 git push -u origin main …or create a new repository on the command line git remote add origin 깃헙주소 git branch -M main git push -u origin main
git에 올렸지만 생각해보니 작성자가 다르다.. 깃을 사용할때 소스트리를 사용하는데 정신없이 작업을 하다보니 중간에 회사계정이 아닌 나의 계정으로 커밋된 목록이 보인다 크게 문제는 될것이 없지만 git 에 커밋작성자를 변경할 수 있는 기능이 있으니 사용해보고 기록한다 참고 : madplay.github.io/post/change-git-author-name git commit author 변경 (커밋 작성자 변경하기) git commit 작성자를 잘못 입력하여 push까지 해버렸다. 커밋 작성자의 이름을 다시 바꿀 수 있을까? madplay.github.io (흐름) 1.git rebase -i 커밋해쉬값^ 2. pick --> edit 변경 3.git commit --amend --author "이름 ..
git config --list or git config -l 내경우 원하는 user로 되어있었는데 아닌경우 원하는 user 셋팅이 아닌경우 git config --unset --global user.name git config --unset --global user.email 을 사용하고 전역으로 설정할땐 git config --global user.name "메메메" git config --global user.email "메메메의 이메일" 셋팅을 unset 하고 전역설정을해야하는건지 전역으로 바로 설정하면 초기화되고 재설정되는건지는 다음에 상황이 되면 한번 테스트 해봐야 겠다 그리고 이후 확인해보니 사용자가 repository에 연결되지 않은거 같았다 git remote -v 으로 현재 상태를 체크..
lazyren.github.io/devlog/gitlab-to-github-repo-clone.html gitlab에서 github로 저장소(repository) commit log를 유지하며 클론하기 대학교에서 진행하는 모든 과제는 학교와 연동된 gitlab의 private repo 이다 보니 학기가 끝나고 github로 정리할 방법이 없을까 하다가 좋은 방법을 발견하여 번역해 봅니다. 이 방법을 통해서 미러 lazyren.github.io 참고 ------------------------------------ ----------그런데 사용자가 지정되지 않는 error 같은게 보였고 meaownworld.tistory.com/78 github - git bash 터미널 계정 변경 팀 프로젝트를 하다보면..