Editing Talk:1597: Git

Jump to: navigation, search
Ambox notice.png Please sign your posts with ~~~~

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 6: Line 6:
 
https://en.wikipedia.org/wiki/Git_(slang) . [[User:Gearoid|Gearóid]] ([[User talk:Gearoid|talk]]) 09:20, 30 October 2015 (UTC)
 
https://en.wikipedia.org/wiki/Git_(slang) . [[User:Gearoid|Gearóid]] ([[User talk:Gearoid|talk]]) 09:20, 30 October 2015 (UTC)
 
:According to word of god it was on purpose: https://en.wikipedia.org/wiki/Git_(software)#History [[Special:Contributions/162.158.22.46|162.158.22.46]] 11:41, 30 October 2015 (UTC)
 
:According to word of god it was on purpose: https://en.wikipedia.org/wiki/Git_(software)#History [[Special:Contributions/162.158.22.46|162.158.22.46]] 11:41, 30 October 2015 (UTC)
:He also designed it in such a way that people often run into problems with commitment to detached heads, and typically deal with this by reflogging... {{unsigned ip|108.162.249.161}}
 
  
 
'Internally, Git works by saving the differences between various versions of the files, rather than creating a new copy each time the user "commits" the current version of the code.' - It is exactly the opposite. It stores whole files, or rather all committed pieces of data (blobs). See http://gitready.com/beginner/2009/02/17/how-git-stores-your-data.html [[Special:Contributions/141.101.88.202|141.101.88.202]] 09:38, 30 October 2015 (UTC)TK
 
'Internally, Git works by saving the differences between various versions of the files, rather than creating a new copy each time the user "commits" the current version of the code.' - It is exactly the opposite. It stores whole files, or rather all committed pieces of data (blobs). See http://gitready.com/beginner/2009/02/17/how-git-stores-your-data.html [[Special:Contributions/141.101.88.202|141.101.88.202]] 09:38, 30 October 2015 (UTC)TK
Line 13: Line 12:
 
:
 
:
 
: See  https://schacon.github.io/gitbook/7_the_packfile.html and https://www.kernel.org/pub/software/scm/git/docs/git-pack-objects.html  
 
: See  https://schacon.github.io/gitbook/7_the_packfile.html and https://www.kernel.org/pub/software/scm/git/docs/git-pack-objects.html  
 +
 +
 
[[Special:Contributions/162.158.177.59|162.158.177.59]] 10:15, 30 October 2015 (UTC)
 
[[Special:Contributions/162.158.177.59|162.158.177.59]] 10:15, 30 October 2015 (UTC)
  
 
::Not sure what pack files are used for, but data is stored as is and named by the SHA-1 of its contents.  See [https://schacon.github.io/gitbook/1_the_git_object_model.html object model] in the same reference.  [[User:Walenc|Walenc]] ([[User talk:Walenc|talk]]) 16:02, 30 October 2015 (UTC)
 
::Not sure what pack files are used for, but data is stored as is and named by the SHA-1 of its contents.  See [https://schacon.github.io/gitbook/1_the_git_object_model.html object model] in the same reference.  [[User:Walenc|Walenc]] ([[User talk:Walenc|talk]]) 16:02, 30 October 2015 (UTC)
 
I think you guys need to differentiate between the underlying data scheme, and the command line. The way git stores underlying data is indeed beautiful, but the command-line is the worst UI ever. You know how you switch to working on a different branch? "git checkout". You know how you revert the changes you've made to a file?  "git checkout".  You know how you make a new branch? "git checkout -b". If you're used to other systems, you'll find nearly every operations - even common ones - counterintuitively named. I work at Google and even here, every week someone near me screws up their respository enough that they have to save their work, nuke their repo, reapply their changes, and try moving forward again. I don't know why anyone puts up with this! (Actually I do - it's because if you're collaborating between companies, git does it better than anything else.) [[Special:Contributions/199.27.129.107|199.27.129.107]] 18:46, 2 November 2015 (UTC)
 
 
: That's not actually true. git checkout takes you to a node of development, as a convenience that can be either the entire code base (a branch) or a single file. You could remove the file you want to 'revert', stash all other changes, checkout HEAD and then pop the stash...or use the git checkout FILE shortcut. git checkout -b is just a shortcut so you don't have to do git branch; git checkout. [[Special:Contributions/108.162.220.239|108.162.220.239]] 06:00, 7 November 2015 (UTC)
 
  
 
I feel like this article should end with a quick guide to git commands. {{unsigned ip|108.162.216.27}}
 
I feel like this article should end with a quick guide to git commands. {{unsigned ip|108.162.216.27}}
Line 34: Line 31:
  
 
Should someone mention how git is by default used through a terminal - which is often more confusing than a GUI for most people - and that while there are graphical shells for git, some people refuse to use them because they're not fully-featured? [[Special:Contributions/108.162.221.36|108.162.221.36]] 11:43, 30 October 2015 (UTC)
 
Should someone mention how git is by default used through a terminal - which is often more confusing than a GUI for most people - and that while there are graphical shells for git, some people refuse to use them because they're not fully-featured? [[Special:Contributions/108.162.221.36|108.162.221.36]] 11:43, 30 October 2015 (UTC)
 +
 +
Shit. I use git for almost a year and I delete my repos more often than I'd like to admit. I'm going to read [https://www.git-scm.com/book/en/v2] and (hopefully) fix this once and for all. [[User:Kripmo|Kripmo]] ([[User talk:Kripmo|talk]]) 02:04, 31 October 2015 (UTC)
 +
:It was way easier than I thought. This is what I needed: git reset --hard <commit before fuck up>. Its alias will be fu. [[User:Kripmo|Kripmo]] ([[User talk:Kripmo|talk]]) 08:10, 31 October 2015 (UTC)
  
 
The really sad part of all this is that if you work in a multi-dev environment and <i>anyone</i> on the team is doing what Cueball suggests, it negates every other user's ability to use the main trunk properly. [[User:Ericm301|Ericm301]] ([[User talk:Ericm301|talk]]) 02:26, 31 October 2015 (UTC)
 
The really sad part of all this is that if you work in a multi-dev environment and <i>anyone</i> on the team is doing what Cueball suggests, it negates every other user's ability to use the main trunk properly. [[User:Ericm301|Ericm301]] ([[User talk:Ericm301|talk]]) 02:26, 31 October 2015 (UTC)
Line 54: Line 54:
 
In what world are telephones not an electronic mean of communication ? [[Special:Contributions/141.101.75.245|141.101.75.245]] 10:56, 2 November 2015 (UTC)
 
In what world are telephones not an electronic mean of communication ? [[Special:Contributions/141.101.75.245|141.101.75.245]] 10:56, 2 November 2015 (UTC)
  
That's not the point. The distinction was being made (ambiguously, perhaps) between electronic and vocal communication. We might naturally turn to telephones for the latter.--[[Special:Contributions/162.158.2.227|162.158.2.227]] 12:16, 2 November 2015 (UTC)
+
 
  
 
ExplainXKCD is usually amazing, but the explanation above is really "comically missing the point".   
 
ExplainXKCD is usually amazing, but the explanation above is really "comically missing the point".   
Line 66: Line 66:
 
Would it be worth polishing the above and adding it to the description, or would that just be flamebait?
 
Would it be worth polishing the above and adding it to the description, or would that just be flamebait?
 
[[Special:Contributions/108.162.246.86|108.162.246.86]] 16:08, 2 November 2015 (UTC)
 
[[Special:Contributions/108.162.246.86|108.162.246.86]] 16:08, 2 November 2015 (UTC)
 
The title text may be referring to the famous saying: "Git is really pretty simple, just think of branches as homeomorphic endofunctors mapping submanifolds of a Hilbert space." [[Special:Contributions/162.158.255.40|162.158.255.40]] 23:23, 2 November 2015 (UTC)
 
 
The current explanation is wrong [not anymore, it's excellent now!]. As others have stated, the comic is clearly making fun of git itself, NOT of its users. [[User:Daskas|Daskas]] ([[User talk:Daskas|talk]]) 13:44, 3 November 2015 (UTC)
 
 
Wow, it's amazing how there are comments above defending git: those commentators lost the fact that XDCD is making fun of git because of it's idealistic view of source control doesn't map at all to reality, which in many cases, leads to user frustration and... dare I say it, lost data and lost productivity. Git is a joke and XKCD highlighted that well :) [[Special:Contributions/162.158.60.5|162.158.60.5]] 20:35, 21 December 2015 (UTC)
 
 
Someone made a [http://ohshitgit.com/ website] to be that "smart guy on the other end of the phone."  The final entry on the page is this comic for sure.--[[User:Draco18s|Draco18s]] ([[User talk:Draco18s|talk]]) 16:17, 12 September 2016 (UTC)
 
 
I'd like to recommend a [http://learngitbranching.js.org/ site I found] on a recent (at the time of this comment) [https://cseducators.stackexchange.com/a/2921 CS Educator stackexchange post.] [[Special:Contributions/108.162.216.106|108.162.216.106]] 05:33, 25 July 2017 (UTC)
 
 
Git lets you have one account for repos connected via SSH, and another account for repos connected via HTTPS. Who thought this was a good idea? [[User:Treeplate|Treeplate]] ([[User talk:Treeplate|talk]]) 16:22, 1 May 2024 (UTC)
 

Please note that all contributions to explain xkcd may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see explain xkcd:Copyrights for details). Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel | Editing help (opens in new window)

Template used on this page: