Re: [git-users] error changes not staged for commit (windows)
Is it in your .gitignore file? Wes On Mon, Nov 26, 2012 at 9:34 AM, git-guy douglasdeod...@gmail.com wrote: i had tried git add . git add path file but still no add the files, some help what happening? should add with git add . but i dont know what happening #git status # On branch master #Your branch is ahead of 'origin/master' by 1 commit # Changes not staged for commit: # (use git add file... to update what will be committed) # (use git checkout -- file... to discard changes in working directory) # # deleted: templates/file.txt # deleted: templates/test.jsp # no changes added to commit (use git add and/or git commit -a) -- --
Re: [git-users] error changes not staged for commit (windows)
hi william that working, but i dont know because in mac doesn't matter if i delete but command line or no, if i am write add . git will add the file deleted or no and i will commit. something change in git these last monts, or that because i using windows? thanks. On 26 November 2012 14:39, William Mizuta william.miz...@gmail.com wrote: If you want to delete a file, use git rm instead of git add. William Seiti Mizuta @williammizuta Desenvolvedor da Caelum On Mon, Nov 26, 2012 at 12:35 PM, Wes Freeman freeman@gmail.comwrote: Is it in your .gitignore file? Wes On Mon, Nov 26, 2012 at 9:34 AM, git-guy douglasdeod...@gmail.comwrote: i had tried git add . git add path file but still no add the files, some help what happening? should add with git add . but i dont know what happening #git status # On branch master #Your branch is ahead of 'origin/master' by 1 commit # Changes not staged for commit: # (use git add file... to update what will be committed) # (use git checkout -- file... to discard changes in working directory) # # deleted: templates/file.txt # deleted: templates/test.jsp # no changes added to commit (use git add and/or git commit -a) -- -- -- -- Cheers! Douglas Deodato | douglasdeodato.com Portfolio: http://bit.ly/fyXHnw “Choose a job you love, and you will never have to work a day in your life.” Confucios(504 B.C.) --
Re: [git-users] error changes not staged for commit (windows)
On linux, if I forget to use `git rm` to delete a file, I can remove the file from the index using `git add -u`. Note that it will also stage any other modifications to the exiting files in the working tree along with removing the deleted files from index. Regards, Vineet On Mon, Nov 26, 2012 at 8:16 PM, Douglas Deodato douglasdeod...@gmail.com wrote: hi william that working, but i dont know because in mac doesn't matter if i delete but command line or no, if i am write add . git will add the file deleted or no and i will commit. something change in git these last monts, or that because i using windows? thanks. On 26 November 2012 14:39, William Mizuta william.miz...@gmail.com wrote: If you want to delete a file, use git rm instead of git add. William Seiti Mizuta @williammizuta Desenvolvedor da Caelum On Mon, Nov 26, 2012 at 12:35 PM, Wes Freeman freeman@gmail.com wrote: Is it in your .gitignore file? Wes On Mon, Nov 26, 2012 at 9:34 AM, git-guy douglasdeod...@gmail.com wrote: i had tried git add . git add path file but still no add the files, some help what happening? should add with git add . but i dont know what happening #git status # On branch master #Your branch is ahead of 'origin/master' by 1 commit # Changes not staged for commit: # (use git add file... to update what will be committed) # (use git checkout -- file... to discard changes in working directory) # # deleted: templates/file.txt # deleted: templates/test.jsp # no changes added to commit (use git add and/or git commit -a) -- -- -- -- Cheers! Douglas Deodato | douglasdeodato.com Portfolio: http://bit.ly/fyXHnw “Choose a job you love, and you will never have to work a day in your life.” Confucios(504 B.C.) -- -- Vineet Naik --