Develope/General

Git 입문 (환경 구성 및 간단 명령어)

scent2d 2020. 5. 27. 16:47

1. 다운로드 및 설치

https://git-scm.com/

 

2. git config --global user.name "scent2d"

 

3. git clone https://github.com/scent2d/my_first_project 

 

4. git add my_first_txt.txt

 

5. git status

 

6. git commit -m "commit message"      // 현재는 로컬 PC까지만 커밋된 상태

 

7. git push     // 커밋된 자료 업로드

 

8. git pull      // git 서버에서 자료 가져오기

 

9. git rm my_first_txt.txt

 

10. git commit -m "remove file"

 

11. git push

 

 

 

참고자료

https://confluence.atlassian.com/bitbucket/configure-your-dvcs-username-for-commits-950301867.html