{"thread":{"id":"53416","subject":"[PATCH v7 1/4] gitfaq: files in .gitignore are tracked","startedAt":"2020-05-06T17:11:47Z","lastAt":"2020-05-06T18:15:21Z","messageCount":5,"participants":["Shourya Shukla","Junio C Hamano"],"isPatch":true,"patchVersion":7,"patchTotal":4},"messages":[{"id":"397206","messageId":"20200506171110.23124-1-shouryashukla.oo@gmail.com","threadId":"53416","inReplyTo":null,"subject":"[PATCH v7 1/4] gitfaq: files in .gitignore are tracked","fromName":"Shourya Shukla","fromEmail":"shouryashukla.oo@gmail.com","sentAt":"2020-05-06T17:11:07Z","receivedAt":"2020-05-06T17:11:47Z","isPatch":true,"sender":{"key":"shouryashukla.oo@gmail.com","avatar":"https://avatars.githubusercontent.com/u/43680618?v=4"},"body":"Add issue in 'Common Issues' section which addresses the problem of\nGit tracking files/paths mentioned in '.gitignore'.\n\nSigned-off-by: Shourya Shukla <shouryashukla.oo@gmail.com>\n---\n Documentation/gitfaq.txt | 10 ++++++++++\n 1 file changed, 10 insertions(+)\n\ndiff --git a/Documentation/gitfaq.txt b/Documentation/gitfaq.txt\nindex 1cf83df118..11d9bac859 100644\n--- a/Documentation/gitfaq.txt\n+++ b/Documentation/gitfaq.txt\n@@ -223,6 +223,16 @@ a file checked into the repository which is a template or set of defaults which\n can then be copied alongside and modified as appropriate.  This second, modified\n file is usually ignored to prevent accidentally committing it.\n \n+[[files-in-.gitignore-are-tracked]]\n+I asked Git to ignore various files, yet they are still tracked::\n+\tA `gitignore` file ensures that certain file(s) which are not\n+\ttracked by Git remain untracked.  However, sometimes particular\n+\tfile(s) may have been tracked before adding them into the\n+\t`.gitignore`, hence they still remain tracked.  To untrack and\n+\tignore files/patterns, use `git rm --cached <file/pattern>`\n+\tand add a pattern to `.gitignore` that matches the <file>.\n+\tSee linkgit:gitignore[5] for details.\n+\n Hooks\n -----\n \n-- \n2.26.2\n\n"},{"id":"397207","messageId":"20200506171110.23124-2-shouryashukla.oo@gmail.com","threadId":"53416","inReplyTo":"20200506171110.23124-1-shouryashukla.oo@gmail.com","subject":"[PATCH v7 2/4] gitfaq: changing the remote of a repository","fromName":"Shourya Shukla","fromEmail":"shouryashukla.oo@gmail.com","sentAt":"2020-05-06T17:11:08Z","receivedAt":"2020-05-06T17:11:50Z","isPatch":true,"sender":{"key":"shouryashukla.oo@gmail.com","avatar":"https://avatars.githubusercontent.com/u/43680618?v=4"},"body":"Add issue in 'Common Issues' section which addresses the problem of\nchanging the remote of a repository.\n\nSigned-off-by: Shourya Shukla <shouryashukla.oo@gmail.com>\n---\n Documentation/gitfaq.txt | 11 +++++++++++\n 1 file changed, 11 insertions(+)\n\ndiff --git a/Documentation/gitfaq.txt b/Documentation/gitfaq.txt\nindex 11d9bac859..875cfa0acd 100644\n--- a/Documentation/gitfaq.txt\n+++ b/Documentation/gitfaq.txt\n@@ -233,6 +233,17 @@ I asked Git to ignore various files, yet they are still tracked::\n \tand add a pattern to `.gitignore` that matches the <file>.\n \tSee linkgit:gitignore[5] for details.\n \n+[[changing-remote-of-the-repository]]\n+I want to change the remote of my repository. How do I do that?::\n+\tA remote is an identifier for a location to which Git pushes your\n+\tchanges as well as fetches any new changes from (if any).  There\n+\tmight be different circumstances in which one might need to change\n+\tthe remote URL (see linkgit:git-remote[1]).  To change the remote URL\n+\tone may use: git remote set-url <name> <newurl>\n++\n+One can list the remotes of a repository using `git remote -v` command.\n+The default name of a remote is 'origin'.\n+\n Hooks\n -----\n \n-- \n2.26.2\n\n"},{"id":"397208","messageId":"20200506171110.23124-3-shouryashukla.oo@gmail.com","threadId":"53416","inReplyTo":"20200506171110.23124-1-shouryashukla.oo@gmail.com","subject":"[PATCH v7 3/4] gitfaq: partial cloning a repository","fromName":"Shourya Shukla","fromEmail":"shouryashukla.oo@gmail.com","sentAt":"2020-05-06T17:11:09Z","receivedAt":"2020-05-06T17:11:54Z","isPatch":true,"sender":{"key":"shouryashukla.oo@gmail.com","avatar":"https://avatars.githubusercontent.com/u/43680618?v=4"},"body":"Add issue in 'Common issue' section which covers issues with cloning\nlarge repositories. Use partial cloning to selectively clone the\nrepository.\n\nSigned-off-by: Shourya Shukla <shouryashukla.oo@gmail.com>\n---\nFixed a whitespace error pointed out by Elijah.\n\n Documentation/gitfaq.txt | 11 +++++++++++\n 1 file changed, 11 insertions(+)\n\ndiff --git a/Documentation/gitfaq.txt b/Documentation/gitfaq.txt\nindex 875cfa0acd..5a6c8fb07e 100644\n--- a/Documentation/gitfaq.txt\n+++ b/Documentation/gitfaq.txt\n@@ -244,6 +244,17 @@ I want to change the remote of my repository. How do I do that?::\n One can list the remotes of a repository using `git remote -v` command.\n The default name of a remote is 'origin'.\n \n+[[partial-cloning]]\n+The repository I am trying to clone is too big.  Is there an alternative\n+way of cloning it in lesser space?::\n+\tA good way to save space when cloning a repository is by using\n+\t`partial clones`.  A partial clone will clone the full history of\n+\tthe repository but will skip out the entities specified by the\n+\t`--filter` option one uses in `git clone`.  Any entity which has\n+\tnot been cloned to save space can be cloned on-demand (hence this\n+\tpresumes that the user has an always-on network connection to the\n+\toriginal repository).  See linkgit:partial-clone[1].\n+\n Hooks\n -----\n \n-- \n2.26.2\n\n"},{"id":"397209","messageId":"20200506171110.23124-4-shouryashukla.oo@gmail.com","threadId":"53416","inReplyTo":"20200506171110.23124-1-shouryashukla.oo@gmail.com","subject":"[PATCH v7 4/4] gitfaq: fetching and pulling a repository","fromName":"Shourya Shukla","fromEmail":"shouryashukla.oo@gmail.com","sentAt":"2020-05-06T17:11:10Z","receivedAt":"2020-05-06T17:11:56Z","isPatch":true,"sender":{"key":"shouryashukla.oo@gmail.com","avatar":"https://avatars.githubusercontent.com/u/43680618?v=4"},"body":"Add an issue in 'Common Issues' section which addresses the confusion\nbetween performing a 'fetch' and a 'pull'.\n\nHelped-by: Elijah Newren <newren@gmail.com>\nSigned-off-by: Shourya Shukla <shouryashukla.oo@gmail.com>\n---\nFixed a whitespace error pointed out by Elijah.\n\n Documentation/gitfaq.txt | 8 ++++++++\n 1 file changed, 8 insertions(+)\n\ndiff --git a/Documentation/gitfaq.txt b/Documentation/gitfaq.txt\nindex 5a6c8fb07e..208e5e5b82 100644\n--- a/Documentation/gitfaq.txt\n+++ b/Documentation/gitfaq.txt\n@@ -255,6 +255,14 @@ way of cloning it in lesser space?::\n \tpresumes that the user has an always-on network connection to the\n \toriginal repository).  See linkgit:partial-clone[1].\n \n+[[fetching-and-pulling]]\n+How do I know if I want to do a fetch or a pull?::\n+\tA fetch stores a copy of the latest changes from the remote\n+\trepository, without modifying the working tree or current branch.\n+\tYou can then at your leisure inspect, merge, rebase on top of, or\n+\tignore the upstream changes.  A pull consists of a fetch followed\n+\timmediately by either a merge or rebase.  See linkgit:git-pull[1].\n+\n Hooks\n -----\n \n-- \n2.26.2\n\n"},{"id":"397224","messageId":"xmqq1rnx6ibv.fsf@gitster.c.googlers.com","threadId":"53416","inReplyTo":"20200506171110.23124-1-shouryashukla.oo@gmail.com","subject":"Re: [PATCH v7 1/4] gitfaq: files in .gitignore are tracked","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2020-05-06T18:15:16Z","receivedAt":"2020-05-06T18:15:21Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Shourya Shukla <shouryashukla.oo@gmail.com> writes:\n\n> Add issue in 'Common Issues' section which addresses the problem of\n> Git tracking files/paths mentioned in '.gitignore'.\n>\n> Signed-off-by: Shourya Shukla <shouryashukla.oo@gmail.com>\n> ---\n\nI'll queue only 1/4 and 4/4 for now, as these two among four haven't\nchanged in the last few rounds.  The remaining two are *not* rejected;\njust are not yet in a shape ready to be queued.\n\nThanks.\n\n\n"}]}