[git, Github] 깃허브 마스터하기

이윤서·2023년 10월 26일

Git/Gitbub

목록 보기
2/3

#모든 설정 확인
git config --list

git config --global -e
code .

git config --global core.editer "code"
git config --global core.editer "code --wait"
git config --global -e
git config --global user.name ""
git config --global user.email ""
git config user.name #확인
#윈도우 사용자 - true, 맥 - input
git config --global core.autocrlf true

깃 명령어

- git + 명령어
cd projects
mkdir git
cd git
ls -al
#깃초기화
git init
open .git
#깃 삭제
rm -rf .git
#상태 확인
git status

git config --global alias.st status
#정보 확인
git config --h

git config

git commit

git add

echo hello world! > a.txt
open .
echo hello world! > b.txt
echo hello world! > c.txt
ls
git status

git add

git add a.txt
git status

브랜치??

git add *.txt

echo ellie >> a.txt

git status

git rm --cached *.txt

#디렉토리 모든 파일을
git add *
#디렉토리 모든 파일 추가
git add .

echo styling > style.css
echo log > log.log
#css 파일만 추가
git add *.css

echo *.log > .gitignore
open .gitignore
git .status

0개의 댓글