brunch

NCP-4. 소스 커밋에 데이터를 넣자-4/11

by Master Seo

<1> 소스 커밋에 데이터를 넣자.



100 Sourcecommit.png




node.js로 개발한 코드를 넣자.


1

[root@s1802b2025ee ~]# cd sourcecommit/


[root@s1802b2025ee sourcecommit]# git status

# On branch master

# Untracked files:

# (use "git add <file>..." to include in what will be committed)

#

# .dockerignore

# Dockerfile

# app.js

# node_modules/

# package-lock.json

# package.json

nothing added to commit but untracked files present (use "git add" to track)

[root@s1802b2025ee sourcecommit]#


2

로컬 레파지토리에 커밋 한다.

푸시한다.


git commit -m “node code push”

git push -u origin +master

git status





다음 공부

https://brunch.co.kr/@topasvga/2363


keyword
매거진의 이전글NCP-3. Source Commit-3/11