본문 바로가기
git

[git]Your branch is up-to-date with 'origin/master'. Changes not staged for commit:

by Junk_Seo 2018. 1. 3.
반응형

git Your branch is up-to-date with 'origin/master'. Changes not staged for commit:

알고리즘 문제를 풀고 그것을 git을 통해서 저장하고 있는데, 이번에 commit을 하다가 문제가 발생했다...

 

내용인 즉,

 git commit -m"mod"

On branch master

Your branch is up-to-date with 'origin/master'.

Changes not staged for commit:

        modified:   BinomialCoefficient/.vs/BinomialCoefficient/v14/.suo

        modified:   BinomialCoefficient/BinomialCoefficient1/Debug/Binomial.31B3                                   547C.tlog/CL.command.1.tlog

        modified:   BinomialCoefficient/BinomialCoefficient1/Debug/Binomial.31B3                                   547C.tlog/CL.read.1.tlog

        modified:   BinomialCoefficient/BinomialCoefficient1/Debug/Binomial.31B3                                   547C.tlog/CL.write.1.tlog

        modified:   BinomialCoefficient/BinomialCoefficient1/Debug/vc140.idb

        modified:   BinomialCoefficient/BinomialCoefficient1/Debug/vc140.pdb

        deleted:    BinomialCoefficient/BinomialCoefficient1/bc2.cpp

        modified:   BinomialCoefficient/BinomialCoefficient2/BinomialCoefficient                                   2.vcxproj

        modified:   BinomialCoefficient/BinomialCoefficient2/BinomialCoefficient                                   2.vcxproj.filters

        modified:   BinomialCoefficient/BinomialCoefficient2/Debug/Binomial.95F1                                   8686.tlog/CL.command.1.tlog

        modified:   BinomialCoefficient/BinomialCoefficient2/Debug/Binomial.95F1                                   8686.tlog/CL.read.1.tlog

        modified:   BinomialCoefficient/BinomialCoefficient2/Debug/Binomial.95F1                                   8686.tlog/CL.write.1.tlog

        modified:   BinomialCoefficient/BinomialCoefficient2/Debug/vc140.idb

        modified:   BinomialCoefficient/BinomialCoefficient2/Debug/vc140.pdb

        modified:   BinomialCoefficient/Debug/BinomialCoefficient1.ilk

        modified:   BinomialCoefficient/Debug/BinomialCoefficient1.pdb

        modified:   BinomialCoefficient/Debug/BinomialCoefficient2.ilk

        modified:   BinomialCoefficient/Debug/BinomialCoefficient2.pdb

 

Untracked files:

        BinomialCoefficient/BinomialCoefficient.VC.VC.opendb

        BinomialCoefficient/BinomialCoefficient2/bc2.cpp

 

no changes added to commit

 

요런 말이 뜨던데... 사실 잘 모르겠고... google에 

Your branch is up-to-date with 'origin/master'.

Changes not staged for commit:

이 내용만 검색해 봤는데, 

 

http://forum.codio.com/t/git-commit-reports-changes-not-staged-for-commit/286

이 글이 제일 위에 있길래 보았다.
여기서 글쓴이가 나랑 똑같은 문제에 걸렸는데 알려 달라는 것이었고 댓글에 

I figured out what to do...

Need to run

git commit -a

instead of just

git commit

요렇게 되어 있길래

git commit -a로 commit을 다시 해보니 잘 되더라...

 

사실 정확한 문제는 뭔지 모르겠지만.... 되니깐 다행이다...

 

<출처>

http://forum.codio.com/t/git-commit-reports-changes-not-staged-for-commit/286

반응형