开发者

Git: after commiting new files, I cannot commit, because of »branch up to date«-message

this is one of my first postings on stackoverflow. I hope I explain my problem clearly for you.

I have a local git repo and I work with a git repo on drupal.org (I have the maintainer-permissions). I've followed up the git instructions on my project-page (cloning, switching to branch..). But when I add new files to a subfolder of this project and then want to push (on defining the correct origin - like in the git-instructions on drupa开发者_运维问答l.org),

git push -u origin 6.x-1.x

so I get the message

Branch 6.x-1.x set up to track remote branch 6.x-1.x from origin. Everything up-to-date

Why I cannot push my new files? What I'm doing wrong?


Why I cannot push my new files? What I'm doing wrong?

Make sure to ADD your new files first:

git add FILENAME/PATH

or to add all files;

git add .

Or add newly added files AND commit using '-am' switch:

git commit -am "your message goes here"

After that, you can run your push command:

git push -u origin 6.x-1.x
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜