Git Client Install(Git 클라이언트 설치)
$ sudo apt install git
Git Contribution Setting (Github서버에 올릴때 작성자)
$ git config --global user.name "~"
$ git config --global user.email "~@gmail.com"
Set VScode as a default editor(VScode를 기본 에디터로 지정)
$ git config --global croe.editor code-oss
Set Root folder as a local storage (해당 루트폴더를 로컬 저장소로 지정)
$ git init
Command to check
$ ls -a
// sucess if you see .git
Delete the local storage
rm -r .git
Add specific file to git (git에 특정파일 추가하기)
$ git add README.md
$ git add .
// add whole files in the library
Commiit (커밋하기)
git commit -m "add README.md"
Local Storage (원격저장소)
$ git remote add (folder name) http://~.git
// check connection
$ git remote -v
(folder name) https://~.git(fetch)
(folder name) https://~.git(push)
// delete connection
$ git remote rm (folder name)
The process of commit, pull and push
$ git add .
$ git commit -m "add something"
$ git pull (folder) master
$ git push (folder) master
Move Branch
~git:(master) $ git checkout master