{"thread":{"id":"25952","subject":"Can't seem to commit","startedAt":"2010-12-04T16:33:04Z","lastAt":"2010-12-06T08:54:37Z","messageCount":3,"participants":["weloki","Andreas Schwab","Chris Packham"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"157304","messageId":"1291480384128-5803287.post@n2.nabble.com","threadId":"25952","inReplyTo":null,"subject":"Can't seem to commit","fromName":"weloki","fromEmail":"weloki@gmail.com","sentAt":"2010-12-04T16:33:04Z","receivedAt":"2010-12-04T16:33:04Z","isPatch":false,"sender":{"key":"weloki@gmail.com","avatar":null},"body":"\nThere is probably an easy solution to this but I'm seeing something really\nweird...\nI can't seem to commit anything to my new branch. When I try to commit it\njust says \"no changes added to commit (use \"git add\" and/or \"git commit\n-a\")\"\nWhen I try to do git add it doesn't seem to do anything.\nWhen I try to push it says \"Everything up-to-date\", but when I look at the\nbranch on github my files aren't there.\nStrangely I was able to do everything fine with a different branch I created\nafterwards.\n-- \nView this message in context: http://git.661346.n2.nabble.com/Can-t-seem-to-commit-tp5803287p5803287.html\nSent from the git mailing list archive at Nabble.com.\n"},{"id":"157306","messageId":"m2zkslbhmi.fsf@igel.home","threadId":"25952","inReplyTo":"1291480384128-5803287.post@n2.nabble.com","subject":"Re: Can't seem to commit","fromName":"Andreas Schwab","fromEmail":"schwab@linux-m68k.org","sentAt":"2010-12-04T16:57:41Z","receivedAt":"2010-12-04T16:57:41Z","isPatch":false,"sender":{"key":"schwab@linux-m68k.org","avatar":"https://avatars.githubusercontent.com/u/2175493?v=4"},"body":"weloki <weloki@gmail.com> writes:\n\n> There is probably an easy solution to this but I'm seeing something really\n> weird...\n> I can't seem to commit anything to my new branch. When I try to commit it\n> just says \"no changes added to commit (use \"git add\" and/or \"git commit\n> -a\")\"\n> When I try to do git add it doesn't seem to do anything.\n\nIf you are unsure what to do you should always try \"git status\" first.\n\nAndreas.\n\n-- \nAndreas Schwab, schwab@linux-m68k.org\nGPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5\n\"And now for something completely different.\"\n"},{"id":"157393","messageId":"4CFCA4CD.4050100@gmail.com","threadId":"25952","inReplyTo":"4CFCA445.2020205@gmail.com","subject":"Re: Can't seem to commit","fromName":"Chris Packham","fromEmail":"judge.packham@gmail.com","sentAt":"2010-12-06T08:54:37Z","receivedAt":"2010-12-06T08:54:37Z","isPatch":false,"sender":{"key":"judge.packham@gmail.com","avatar":"https://avatars.githubusercontent.com/u/155667?v=4"},"body":"Sorry for the dupe, I forgot to CC the list.\n\nOn 05/12/10 05:33, weloki wrote:\n>\n> There is probably an easy solution to this but I'm seeing something really\n> weird...\n> I can't seem to commit anything to my new branch. When I try to commit it\n> just says \"no changes added to commit (use \"git add\" and/or \"git commit\n> -a\")\"\n> When I try to do git add it doesn't seem to do anything.\n> When I try to push it says \"Everything up-to-date\", but when I look at the\n> branch on github my files aren't there.\n> Strangely I was able to do everything fine with a different branch I created\n> afterwards.\n\nOne thing to check is where you're pushing to (\"git remote show origin\"\nshould tell you). You may also want to check the value of \"git config\nbranch.master.merge\", \"git config remote.origin.url\" and \"git config\npush.default\".\n\nFor me these are\nrefs/heads/master\n<my github project>\ntracking\n\nAlso on a very fresh repository you need to use \"git push origin\nmaster:refs/heads/master\" to create the master branch on the remote end.\n"}]}