자주쓰는 Git 명령어

2020. 3. 22. 19:04기타

728x90
git status shows the state of the working directory and the staging area
git config --list show git configuration
git config --global user.name "이용자명" set user name
git config --global user.email 이메일주소 set user email
git init create local repository
git remote add 리모트저장소명 리모트저장소주소 add remote repository
git remote set-url 리모트저장소명 새로운리모트저장주소 change remote repository url
git branch 브랜치명 create new branch
git checkout 브랜치명 select branch
git branch (-l) show all of local branches
git branch -r show all of remote branches
git branch -a show all of local/remote branches

git add *

또는

git add .

stage all files
git commit -m "커밋메시지"

commit and enter commit message

ex)

git commit -m "

 2020-03-22 로그인 css 변경

 1. font-family를 돋움체로 변경

 2. table thead 내용 변경

 3. SNS로그인 아이콘 변경"

git push 리모트명 브랜치명

push staged files

git pull 리모트저장소명 브랜치명 download the changes from the remote to your local repository and merge them into your current branch
git fetch download the chages from the remote to your local repository
728x90
반응형