jineecode
개인 작업 github에 push하기. 본문
1. git status
결과
On branch main
Your branch is up to date with 'origin/main'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: index.html
no changes added to commit (use "git add" and/or "git commit -a")
변경된 파일
modified: index.html
2. git add index.html
3. git commit -m "plus html"
결과
PS C:\Users\TJ\Documents\user\reflux> git commit -m "plus html"
[main 2fa1a37] plus html
1 file changed, 1 insertion(+), 1 deletion(-)
4. git push
결과
PS C:\Users\TJ\Documents\user\reflux> git push
Enumerating objects: 5, done.
Counting objects: 100% (5/5), done.
Delta compression using up to 4 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 293 bytes | 293.00 KiB/s, done.
Total 3 (delta 2), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (2/2), completed with 2 local objects.
To https://github.com/uhj1993/reflux.git
79a8852..2fa1a37 main -> main
잘 push 된 것을 확인할 수 있다.
5. git status 를 해보면?
On branch main
Your branch is up to date with 'origin/main'.
nothing to commit, working tree clean
tree clean ^^
'git' 카테고리의 다른 글
이슈 생성하고 닫기 (0) | 2021.03.22 |
---|---|
git revert 취소하기 (2) | 2021.02.18 |
git을 다른 곳에서 함께 관리하기. (0) | 2021.02.13 |
Updates were rejected 오류. (0) | 2021.02.09 |
vscode를 githube와 연결시키기 (0) | 2021.01.23 |
Comments