# Can't seem to commit

3 messages from 2010-12-04 to 2010-12-06. Participants: weloki, Andreas Schwab, Chris Packham.
Thread: https://gitlist.dev/t/25952

## weloki, 2010-12-04 16:33

Subject: Can't seem to commit
Message-ID: <1291480384128-5803287.post@n2.nabble.com>
URL: https://gitlist.dev/e/1291480384128-5803287.post%40n2.nabble.com

```

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.
-- 
View this message in context: http://git.661346.n2.nabble.com/Can-t-seem-to-commit-tp5803287p5803287.html
Sent from the git mailing list archive at Nabble.com.

```

## Andreas Schwab, 2010-12-04 16:57

Subject: Re: Can't seem to commit
Message-ID: <m2zkslbhmi.fsf@igel.home>
URL: https://gitlist.dev/e/m2zkslbhmi.fsf%40igel.home
In-Reply-To: <1291480384128-5803287.post@n2.nabble.com>

```
weloki <weloki@gmail.com> writes:

> 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.

If you are unsure what to do you should always try "git status" first.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

```

## Chris Packham, 2010-12-06 08:54

Subject: Re: Can't seem to commit
Message-ID: <4CFCA4CD.4050100@gmail.com>
URL: https://gitlist.dev/e/4CFCA4CD.4050100%40gmail.com
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.

```
