카테고리 없음

git upload, folder upload

sunlab 2019. 9. 30. 21:13
728x90

git 설치

$ sudo apt-get install git-core

github 개인 정보 등록

$ sudo git config --global user.name "본인 계정 입력"

$ sudo git config --global user.email "본인 메일 주소 입력"

$ sudo git config --global color.ui "auto"

-- 변환된 소스(추가,수정,삭제) 쉽게 판별하기 위한 컬러 설정

 

작업폴더 생성

$ sudo mkdir /works

$ cd /works

$ sudo git init

- 위에서 생성한 폴더 안에서 새로운 git 저장소 생성

 

github 저장소 복제

$ sudo git clone https://github.com/yourUsername/yourRepository.git

원격 저장소 등록

$ sudo git remote add origin https://github.com/yourUsername/yourRepository.git

- git에게 원격저장소 서버주소를 알려주는 것

$ sudo git fetch origin

 

변경된 모든 파일 추가 (커밋전에 필수 실행)

$ sudo git add -A

 

# 아래의 명령어를 입력후 엔터 치고 변경목록이 보이면 Ctrl+o 그리고 엔터 그리고 Ctrl+x 종료한다.
$ sudo git commit

 

커밋 메세지를 입력

$ sudo git commit -m "메세지입력"

 

저장소에 올리기(계정과 암호 물어보면 입력)

$ sudo git push origin master

 

------------------------------------------------------

 

저장소 업데이트 (내려받기)

$ sudo git pull

 

git 상태 확인

$ git status

 

-------------------------------------------------------

@ folder upload

 

git init
git add   
git commit -m "Your message about the commit"
git remote add origin https://github.com/yourUsername/yourRepository.git
git push -u origin master
git push origin master

Folder upload only works if contains less than 100 files.

 

-------------------------------------------------------

 

github가 한번에 파일을 최대 100개까지 올릴 수 있도록 제한한다.

파일의 갯수가 그 이상이 되면 노가다성으로 올려야한다.

 

 

참고

https://yokang90.tistory.com/47

 

- 우분투(Ubuntu) Git & GitHub 설치 및 사용법

# 우분투 환경에서 Git & GitHub 사용을 처음 해봐서 찾아보다가 정리해두면 좋을 것 같아서... 1. Git 설치 및 설정 sudo apt-get install git-core - 'apt-get' 이용하여 설치 git config --list - 기본 설정..

yokang90.tistory.com

https://dejavuwing.tistory.com/entry/Ubuntu-GitHub-%EC%82%AC%EC%9A%A9%EB%B2%95

 

[Ubuntu] GitHub 사용법

리눅스(우분투) GitHub 사용법 git 설치 $ sudo apt-get install git-core [!] 참고 : https://help.github.com/articles/set-up-git Github 개인 정보 등록 $ sudo git config --global user.name "본인 계정 입..

dejavuwing.tistory.com

https://www.tutsmake.com/upload-project-files-on-github-using-command-line/

 

Upload Project/Files On Github Using Command line - Tuts Make

Upload file to github command line. Today we will learn how to easily upload project or file on github using command line. First we will create a new repository on github and after we will fill the repository name and description. Follow the few steps and

www.tutsmake.com

git hub에 저장소 만들기 https://codevkr.tistory.com/46

 

[Git] Github에 저장소 만들고 업로드하기

안녕하세요 이번 포스팅에서는 깃허브(Github)에 나만의 저장소를 만들고 만든 저장소에 코드나 파일을 업로드하는 방법에 대해 알아보도록 하겠습니다! 먼저 컴퓨터에 깃(Git)이 설치되어있어야합니다! http://co..

codevkr.tistory.com