Advertisement
Guest User

Untitled

a guest
Apr 3rd, 2014
397
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. I use git and github a lot and have very few complaints, and yet I
  2. have failed to see the use of gists.
  3.  
  4. - What is wrong with standard repo + README?
  5. - No way of converting a standard repo into a "gist" repo.
  6.  
  7. When I work on a code project, even some random one-off script, I
  8. track its evolution in a git repo. So if it doesn't naturally belong
  9. in an existing repo, I create a new repo. As soon as I have something
  10. that I don't want to lose, I'll make an initial commit. The commands
  11. involved are near instantaneous and they bring huge benefits.
  12.  
  13. Now, I want to share this script. Can I turn my repo into a gist? No,
  14. I don't believe so.
  15.  
  16. So what is the workflow?
  17.  
  18. 1. Start work
  19. 2. Get to a point you want to share with others, without ever having committed
  20. 3. Use web UI to create gist
  21. 4. Paste work into gist and save
  22. 5. Edit, paste, iterate
  23.  
  24. or
  25.  
  26. 1. Decide to start project
  27. 2. Use web UI to create gist
  28. 3. Clone gist repo
  29. 4. Rename it so it's not just a large integer
  30. 5. Start work
  31. 6. Commit and push gist to remote
  32.  
  33. I don't hear much criticism of gists so hopefully I am missing
  34. something. But at the moment it seems to me that if you want history,
  35. use a normal git repo. And if you don't want history, use a paste
  36. buffer with no versioning features.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement