git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: the git add command

From
KTKonstantin Tokarev <annulen@yandex.ru>
Date
Feb 17, 2021, 20:48 UTC
Message-ID
<277141613594706@mail.yandex.ru>
In-Reply-To
<66eb4eba-ed94-b467-336b-dbe6f398d8af@kpnmail.nl>
16.02.2021, 19:08, "Knapperig knaapie" <isaacvanson@kpnmail.nl>:
Show 10 quoted lines
> Hello there,
>
> I recently made a change to a project, and for adding a file I changed
> to the staging area I used the command 'git add ookleuk/admin.py'. At
> this point I was logged into the parent directory of 'ookleuk' on the
> command line. However, when I used the push command, I got the response
> 'everything up to date'. For now it isn't a problem, because when I used
> the command 'git add .' everything worked fine and the files in the
> repository got updated, but honestly, I want to be sure I'll be able to
> only upload specific files in the future.

In this case you should better use git gui to add files. It allows not only to add individual files quickly, but also add specific part of changes in a file, e.g. omit leftover debug lines or changes related to another topic. Corresponding command line tools like git add -p or git add -i are quite tedious to use.

Show 5 quoted lines
>
> A screenshot of the problem occurring on the command line is attached.
> Holler if you need more info.
>
> Greetings, Isaac

--  Regards, Konstantin

Previous: Seth House
Message 3 of 3 in “the git add command”
  1. Knapperig knaapieFeb 16, 2021
  2. Seth HouseFeb 16, 2021
  3. Konstantin TokarevFeb 17, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.