git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Konstantin Tokarev <annulen@yandex.ru>
To: Knapperig knaapie <isaacvanson@kpnmail.nl>,
	"git@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: the git add command
Date: Wed, 17 Feb 2021 23:48:44 +0300	[thread overview]
Message-ID: <277141613594706@mail.yandex.ru> (raw)
In-Reply-To: <66eb4eba-ed94-b467-336b-dbe6f398d8af@kpnmail.nl>



16.02.2021, 19:08, "Knapperig knaapie" <isaacvanson@kpnmail.nl>:
> 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.

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


-- 
Regards,
Konstantin

      parent reply	other threads:[~2021-02-17 20:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-16 15:21 the git add command Knapperig knaapie
2021-02-16 17:54 ` Seth House
2021-02-17 20:48 ` Konstantin Tokarev [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=277141613594706@mail.yandex.ru \
    --to=annulen@yandex.ru \
    --cc=git@vger.kernel.org \
    --cc=isaacvanson@kpnmail.nl \
    /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).