2016-07-26 5 views
0

여기에 내가 한 것 :왜 내 자식 파일이 변경된 것을 인식하지 못합니까?

나는 약간의 파일을 저질 렀다. 내가 다음이 상태

$ git status 
warning: LF will be replaced by CRLF in topGamesMenu.php. 
The file will have its original line endings in your working directory. 
# On branch TopGamesMenu 
# Changes to be committed: 
# (use "git reset HEAD <file>..." to unstage) 
# 
#  modified: index.php 
#  modified: nbproject/private/private.xml 
#  new file: topGamesMenu.php 
# 

있어 그 후 은 내가

git push -m 'logos vom den besten spielen im menu implementiert' 

을 밀어 싶어하지만 난 마사지 매개 변수가 푸시 명령에 지르지에 있어야합니다 깨달았다. 은 나의 자식 상태가 더 이상 변화를 보여준다이 명령 한 후 다시

$ git commit -m 'logo von dem vier besten spielem um menu implementiert' 
[TopGamesMenu warning: LF will be replaced by CRLF in topGamesMenu.php. 
The file will have its original line endings in your working directory. 
8fa4dea] logo von dem vier besten spielem um menu implementiert 
warning: LF will be replaced by CRLF in topGamesMenu.php. 
The file will have its original line endings in your working directory. 
3 files changed, 133 insertions(+), 86 deletions(-) 
create mode 100644 topGamesMenu.php 

최선을 다하고 있습니다.

$ git status 
# On branch TopGamesMenu 
nothing to commit, working directory clean 

--- 편집 ---

자식 푸시 나던 작동합니다. 이봐 요.

Everything up-to-date 

무엇이 잘못 되었나요?

+1

아무것도 자체가 잘못입니다 사용해야합니다. 몇 줄의 파일에서 줄 끝이 바뀌기 때문에 새로운 커밋을 간단하게 만들었습니다. 그런데'git push '가 실제로 작동 했나요? –

+1

아무 것도 잘못되었습니다. 첫 커맨드는'git add'였습니다. 이것은 메시지와 함께'git commit'을위한 준비 영역을 준비했습니다. 이제'git push '를 할 준비가되었습니다. –

+0

@TimBiegeleisen은 푸시가 작동하지 않습니다. git은 "모두 최신"이라고 말합니다. 원격 리포에는 변화가 없습니다. – user2440762

답변

1

당신이보고있는 것은 무엇이든 기대됩니다!

Git 변경된 파일은 커밋 된 후 git status에 나열되지 않습니다. 당신은 상류로 설정했을 경우에 실제로, 그것은

Your branch is ahead of 'origin/<your branch>' by 1 commit. 

당신이 수정 된 파일을 보려면

같은, 당신은

git log --name-only 
+0

git log로 내 커밋을 찾았지만. 내가 어떻게 밀어 낼 수 있니? $의 자식 로그 는 8fa4dea4ad152c68f7c1284357891641d20ba0ea에게 저자 커밋 : *** 날짜 : 화 7월 26일 2시 20분 45초 2016 0200 로고 폰 민주 공화국의 VIER 베 스텐 spielem 음 메뉴 implementiert .... – user2440762

+0

자식 푸시 기원을 < your_branch_name> –

관련 문제