messages
listlengths
3
3
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "Is it possible to 'fork a fork' in Github?\n\nI am currently working on a project that is a spinoff (fork) from a framework I have been working on.\nThis project is intended to be pretty generic, but now I need to fork the codebase again for a client of mine.\nAt this moment, I have created a custom branch for my client, but I'd rather have a standalone repository for this.\n\nIs is possible to 'fork a fork'?\nIf not, what alternatives do I have?\n\nOutline of the situation:\n\nFramework repository (original)\n\n\nGeneric application repository (fork)\n\n\n(not yet) Client repository (fork of application)\n\n\n\nNote: when trying to 'fork a fork' in Github, you will receive a notification that you have already forked the project:" }, { "role": "assistant", "content": "This is now very possible. You just go to the fork you want to fork\n and click \"fork\" like you would always do. This only works if you\n don't have a different fork of that repository in your account\n already, though. If you do, you have to delete it.\n\nAnswered in a comment by iFreilicht\nSince this is the correct answer now, it is better to highlight it." } ]
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "git-diff - Show changes between commits, commit and working tree, etc -W --function-context" }, { "role": "assistant", "content": "Show whole function as context lines for each change.\nThe function names are determined in the same way as git diff works out patch hunk headers (see Defining a\ncustom hunk-header in gitattributes )." } ]
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "git - the stupid content tracker git-diagnose" }, { "role": "assistant", "content": "Generate a zip archive of diagnostic information" } ]
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "Using an image caption in Markdown Jekyll\n\nI am hosting a Jekyll Blog on Github and write my posts with Markdown. When I am adding images, I do it the following way:\n![name of the image](http://link.com/image.jpg)\nThis then shows the image in the text. \nHowever, how can I tell Markdown to add a caption which is presented below or above the image?" }, { "role": "assistant", "content": "I know this is an old question but I thought I'd still share my method of adding image captions. You won't be able to use the caption or figcaption tags, but this would be a simple alternative without using any plugins.\nIn your markdown, you can wrap your caption with the emphasis tag and put it directly underneath the image without inserting a new line like so:\n![](path_to_image)\n*image_caption*\n\nThis would generate the following HTML:\n<p>\n <img src=\"path_to_image\" alt>\n <em>image_caption</em>\n</p>\n\nThen in your CSS you can style it using the following selector without interfering with other em tags on the page:\nimg + em { }\n\nNote that you must not have a blank line between the image and the caption because that would instead generate:\n<p>\n <img src=\"path_to_image\" alt>\n</p>\n<p>\n <em>image_caption</em>\n</p>\n\nYou can also use whatever tag you want other than em. Just make sure there is a tag, otherwise you won't be able to style it." } ]
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "git-rev-list - Lists commit objects in reverse chronological order %ci" }, { "role": "assistant", "content": "committer date, ISO 8601-like format" } ]
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "GitHub folders have a white arrow on them\n\nI have recently pushed to github, and see a white arrow on one of my folders. \n\nand when i click on the folder, it does not open it. On my local machine, it has contents, but in github i cannot access them. What does this mean?" }, { "role": "assistant", "content": "Symptom\nCheck if locally you have a .git/ sub-folder under that folder.\nCause\nThat would mean the folder (locally) is a nested Git repository, whose tree SHA1 is recorded as a \"gitlink\" (gray folder with straight white arrow)\nWhat you would then see on GitHub is that gitlink: SHA-1 of the object refers to a commit in another repository, represented by an empty folder name. It is a nested Git repository.\nIf you see a folder @ xxx, then it is a submodule entry, meaning your own repository has a .gitmodules in it, which records, in addition of the gitlink, the actual URL of the remote repository.\nIt represents the object name of the commit that the super-project expects the nested submodule's working directory to be at.\nIn both cases (white arrow with a folder name, or white arrow with folder @ xxx, folder name and version), it is a Gitlink represented a nested Git repository: a placeholder for another Git repository, hence an empty folder. But in the second case, that empty folder would be referenced/visible in a special .gitmodules file.\n\nSolution (to remove the white arrow)\nIn order to restore that folder content:\nsubmodule:\nA git clone --recurse-submodules would restore the content of that submodule in your local repository (as opposed to a nested Git repo, where its URL is not recorded, and the content of the folder would remain empty)\nThe white arrow would remain on the remote repository, with folder @ version displaying what SHA1 of the submodule repository is referenced by your project.\nNested Git repository:\nAlternatively, you could, if you don't care about the history of that folder, delete locally its .git subfolder (assuming it is not a submodule, meaning it is not referenced in a .gitmodules file in your main repository), add, commit and push.\nThe white arrow would then disappear, and you would be able to access that folder content on GitHub.\nThen you would need to delete the gitlink entry:\ngit rm --cache client_folder \n# without a trailing slash: \n# not client_folder/ but client_folder\n\nFinally, you can add, commit and push that folder content." } ]
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "Putting Git hooks into a repository\nIs it considered to be a bad practice - to put .git/hooks into the projects repository (using symlinks, for example). If yes, what is the best way to deliver same hooks to different Git users?" }, { "role": "assistant", "content": "Nowadays you can do the following to set a directory that is under version control to be your Git hooks directory, e.g., MY_REPO_DIR/.githooks would be\ngit config --local core.hooksPath .githooks/\n\nIt is still not directly enforceable but, if you add a note in your README (or whatever), this requires a minimum of effort on each developer's part." } ]
[ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "Sending Emails With GitLab not working correctly\n\nI'm trying to troubleshoot why GitLab Omnibus is not sending automated emails using Postfix, which is already installed and configured correctly (it's being used by other applications installed on the server as well). \nWhen I make a change to an issue, while tailing the Gitlab logs, this is what I'm noticing: \n\n==> /var/log/gitlab/sidekiq/current <==\n 2015-04-03_20:06:30.79386 2015-04-03T20:06:30.793Z 8126 TID-aq3vk Sidekiq::Extensions::DelayedMailer JID-460531f571f6756908805d66 INFO: start\n 2015-04-03_20:06:31.53363 sendmail: recipients with -t option not supported\n==> /var/log/gitlab/gitlab-rails/production.log <==\nSent mail to [email聽protected] (48.3ms)\n==> /var/log/gitlab/sidekiq/current <==\n 2015-04-03_20:06:31.57039 2015-04-03T20:06:31.570Z 8126 TID-aq3vk Sidekiq::Extensions::DelayedMailer JID-460531f571f6756908805d66 INFO: done: 0.776 sec\n\nI sanitized the email address, but it is sending to a correct address. \nI'm guessing the issue is related to the \" sendmail: recipients with -t option not supported\"\nHowever, I cannot find anybody else out there who has had this issue. \nThanks." }, { "role": "assistant", "content": "I fixed this issue by switching GitLab to SMTP by following the guide here: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/smtp.md\nIt seems like SMTP is documented in greater detail." } ]