{"thread":{"id":"53409","subject":"[PATCH v6 2/4] gitfaq: changing the remote of a repository","startedAt":"2020-05-06T08:04:10Z","lastAt":"2020-05-06T17:19:33Z","messageCount":8,"participants":["Shourya Shukla","Elijah Newren","Junio C Hamano"],"isPatch":true,"patchVersion":6,"patchTotal":4},"messages":[{"id":"397170","messageId":"20200506080023.12521-2-shouryashukla.oo@gmail.com","threadId":"53409","inReplyTo":"20200506080023.12521-1-shouryashukla.oo@gmail.com","subject":"[PATCH v6 2/4] gitfaq: changing the remote of a repository","fromName":"Shourya Shukla","fromEmail":"shouryashukla.oo@gmail.com","sentAt":"2020-05-06T08:00:21Z","receivedAt":"2020-05-06T08:04:10Z","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":"397171","messageId":"20200506080023.12521-4-shouryashukla.oo@gmail.com","threadId":"53409","inReplyTo":"20200506080023.12521-1-shouryashukla.oo@gmail.com","subject":"[PATCH v6 4/4] gitfaq: fetching and pulling a repository","fromName":"Shourya Shukla","fromEmail":"shouryashukla.oo@gmail.com","sentAt":"2020-05-06T08:00:23Z","receivedAt":"2020-05-06T08:04:10Z","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---\n Documentation/gitfaq.txt | 8 ++++++++\n 1 file changed, 8 insertions(+)\n\ndiff --git a/Documentation/gitfaq.txt b/Documentation/gitfaq.txt\nindex 5dfbb32089..53e3844374 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\tby either a merge or rebase.  See linkgit:git-pull[1].\n+\n Hooks\n -----\n \n-- \n2.26.2\n\n"},{"id":"397172","messageId":"20200506080023.12521-3-shouryashukla.oo@gmail.com","threadId":"53409","inReplyTo":"20200506080023.12521-1-shouryashukla.oo@gmail.com","subject":"[PATCH v6 3/4] gitfaq: partial cloning a repository","fromName":"Shourya Shukla","fromEmail":"shouryashukla.oo@gmail.com","sentAt":"2020-05-06T08:00:22Z","receivedAt":"2020-05-06T08:04:10Z","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---\n Documentation/gitfaq.txt | 11 +++++++++++\n 1 file changed, 11 insertions(+)\n\ndiff --git a/Documentation/gitfaq.txt b/Documentation/gitfaq.txt\nindex 875cfa0acd..5dfbb32089 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\ton-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":"397173","messageId":"20200506080023.12521-1-shouryashukla.oo@gmail.com","threadId":"53409","inReplyTo":null,"subject":"[PATCH v6 1/4] gitfaq: files in .gitignore are tracked","fromName":"Shourya Shukla","fromEmail":"shouryashukla.oo@gmail.com","sentAt":"2020-05-06T08:00:20Z","receivedAt":"2020-05-06T08:04:11Z","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":"397193","messageId":"CABPp-BG98C1Hmh-MtFS50Ds3vT=RtLu+uj3-tbDCK1UsYWwzKg@mail.gmail.com","threadId":"53409","inReplyTo":"20200506080023.12521-3-shouryashukla.oo@gmail.com","subject":"Re: [PATCH v6 3/4] gitfaq: partial cloning a repository","fromName":"Elijah Newren","fromEmail":"newren@gmail.com","sentAt":"2020-05-06T16:16:39Z","receivedAt":"2020-05-06T16:16:53Z","isPatch":true,"sender":{"key":"newren@gmail.com","avatar":"https://avatars.githubusercontent.com/u/5455730?v=4"},"body":"On Wed, May 6, 2020 at 1:00 AM Shourya Shukla\n<shouryashukla.oo@gmail.com> wrote:\n>\n> Add issue in 'Common issue' section which covers issues with cloning\n> large repositories. Use partial cloning to selectively clone the\n> repository.\n>\n> Signed-off-by: Shourya Shukla <shouryashukla.oo@gmail.com>\n> ---\n>  Documentation/gitfaq.txt | 11 +++++++++++\n>  1 file changed, 11 insertions(+)\n>\n> diff --git a/Documentation/gitfaq.txt b/Documentation/gitfaq.txt\n> index 875cfa0acd..5dfbb32089 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> +       A good way to save space when cloning a repository is by using\n> +       `partial clones`.  A partial clone will clone the full history of\n> +       the repository but will skip out the entities specified by the\n> +       `--filter` option one uses in `git clone`.  Any entity which has\n> +       not been cloned to save space can be cloned     on-demand (hence this\n\nLooks like you have a tab instead of a space between 'cloned' and 'on-demand'.\n\n> +       presumes that the user has an always-on network connection to the\n> +       original repository).  See linkgit:partial-clone[1].\n> +\n>  Hooks\n>  -----\n>\n> --\n> 2.26.2\n"},{"id":"397195","messageId":"CABPp-BHurMUPM=NVr7N4Fvx9UccNqi-nQrFH0_vM9a96MjFzog@mail.gmail.com","threadId":"53409","inReplyTo":"20200506080023.12521-4-shouryashukla.oo@gmail.com","subject":"Re: [PATCH v6 4/4] gitfaq: fetching and pulling a repository","fromName":"Elijah Newren","fromEmail":"newren@gmail.com","sentAt":"2020-05-06T16:20:02Z","receivedAt":"2020-05-06T16:20:16Z","isPatch":true,"sender":{"key":"newren@gmail.com","avatar":"https://avatars.githubusercontent.com/u/5455730?v=4"},"body":"Hi Shourya,\n\nOn Wed, May 6, 2020 at 1:00 AM Shourya Shukla\n<shouryashukla.oo@gmail.com> wrote:\n>\n> Add an issue in 'Common Issues' section which addresses the confusion\n> between performing a 'fetch' and a 'pull'.\n>\n> Helped-by: Elijah Newren <newren@gmail.com>\n> Signed-off-by: Shourya Shukla <shouryashukla.oo@gmail.com>\n> ---\n>  Documentation/gitfaq.txt | 8 ++++++++\n>  1 file changed, 8 insertions(+)\n>\n> diff --git a/Documentation/gitfaq.txt b/Documentation/gitfaq.txt\n> index 5dfbb32089..53e3844374 100644\n> --- a/Documentation/gitfaq.txt\n> +++ b/Documentation/gitfaq.txt\n> @@ -255,6 +255,14 @@ way of cloning it in lesser space?::\n>         presumes that the user has an always-on network connection to the\n>         original 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> +       A fetch stores a copy of the latest changes from the remote\n> +       repository, without modifying the working tree or current branch.\n> +       You can then at your leisure inspect, merge, rebase on top of, or\n> +       ignore the upstream changes.  A pull consists of a fetch followed\n> +       immediately     by either a merge or rebase.  See linkgit:git-pull[1].\n\nLooks like you have a tab instead of a space between 'immediately' and 'by'.\n\n>  Hooks\n>  -----\n>\n> --\n> 2.26.2\n\nOther than the two small spacing issues, the series looks good to me.\n"},{"id":"397212","messageId":"xmqqlfm56kze.fsf@gitster.c.googlers.com","threadId":"53409","inReplyTo":"20200506080023.12521-2-shouryashukla.oo@gmail.com","subject":"Re: [PATCH v6 2/4] gitfaq: changing the remote of a repository","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2020-05-06T17:17:57Z","receivedAt":"2020-05-06T17:18:02Z","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> changing the remote of a repository.\n>\n> Signed-off-by: Shourya Shukla <shouryashukla.oo@gmail.com>\n> ---\n>  Documentation/gitfaq.txt | 11 +++++++++++\n>  1 file changed, 11 insertions(+)\n>\n> diff --git a/Documentation/gitfaq.txt b/Documentation/gitfaq.txt\n> index 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\nUp to this point it is a well written answer to \"how do I change the remote\".\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\nThis is not.  Drop the paragraph, perhaps?\n\n>  Hooks\n>  -----\n"},{"id":"397214","messageId":"xmqqh7wt6kwy.fsf@gitster.c.googlers.com","threadId":"53409","inReplyTo":"CABPp-BHurMUPM=NVr7N4Fvx9UccNqi-nQrFH0_vM9a96MjFzog@mail.gmail.com","subject":"Re: [PATCH v6 4/4] gitfaq: fetching and pulling a repository","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2020-05-06T17:19:25Z","receivedAt":"2020-05-06T17:19:33Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Elijah Newren <newren@gmail.com> writes:\n\n> Hi Shourya,\n>\n> On Wed, May 6, 2020 at 1:00 AM Shourya Shukla\n> <shouryashukla.oo@gmail.com> wrote:\n>>\n>> Add an issue in 'Common Issues' section which addresses the confusion\n>> between performing a 'fetch' and a 'pull'.\n>>\n>> Helped-by: Elijah Newren <newren@gmail.com>\n>> Signed-off-by: Shourya Shukla <shouryashukla.oo@gmail.com>\n>> ---\n>>  Documentation/gitfaq.txt | 8 ++++++++\n>>  1 file changed, 8 insertions(+)\n>>\n>> diff --git a/Documentation/gitfaq.txt b/Documentation/gitfaq.txt\n>> index 5dfbb32089..53e3844374 100644\n>> --- a/Documentation/gitfaq.txt\n>> +++ b/Documentation/gitfaq.txt\n>> @@ -255,6 +255,14 @@ way of cloning it in lesser space?::\n>>         presumes that the user has an always-on network connection to the\n>>         original 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>> +       A fetch stores a copy of the latest changes from the remote\n>> +       repository, without modifying the working tree or current branch.\n>> +       You can then at your leisure inspect, merge, rebase on top of, or\n>> +       ignore the upstream changes.  A pull consists of a fetch followed\n>> +       immediately     by either a merge or rebase.  See linkgit:git-pull[1].\n>\n> Looks like you have a tab instead of a space between 'immediately' and 'by'.\n\nGood eyes.  Otherwise the contents of this new paragraph looks OK to\nme.\n\nThere is no \"git partial-clone\" command, so the reference at the end\nof the previous paragraph looks bogus, but that is not a fault of\nthis step.\n\nThanks.\n"}]}