git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Chris Packham <judge.packham@gmail.com>
To: weloki <weloki@gmail.com>
Cc: "git@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: Can't seem to commit
Date: Mon, 06 Dec 2010 21:54:37 +1300	[thread overview]
Message-ID: <4CFCA4CD.4050100@gmail.com> (raw)
In-Reply-To: <4CFCA445.2020205@gmail.com>

Sorry for the dupe, I forgot to CC the list.

On 05/12/10 05:33, weloki wrote:
>
> There is probably an easy solution to this but I'm seeing something really
> weird...
> I can't seem to commit anything to my new branch. When I try to commit it
> just says "no changes added to commit (use "git add" and/or "git commit
> -a")"
> When I try to do git add it doesn't seem to do anything.
> When I try to push it says "Everything up-to-date", but when I look at the
> branch on github my files aren't there.
> Strangely I was able to do everything fine with a different branch I created
> afterwards.

One thing to check is where you're pushing to ("git remote show origin"
should tell you). You may also want to check the value of "git config
branch.master.merge", "git config remote.origin.url" and "git config
push.default".

For me these are
refs/heads/master
<my github project>
tracking

Also on a very fresh repository you need to use "git push origin
master:refs/heads/master" to create the master branch on the remote end.

      parent reply	other threads:[~2010-12-06  8:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-04 16:33 Can't seem to commit weloki
2010-12-04 16:57 ` Andreas Schwab
     [not found] ` <4CFCA445.2020205@gmail.com>
2010-12-06  8:54   ` Chris Packham [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CFCA4CD.4050100@gmail.com \
    --to=judge.packham@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=weloki@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).