-
Notifications
You must be signed in to change notification settings - Fork 0
/
How the Heck Do I Use GitHub?.html
911 lines (674 loc) · 31.8 KB
/
How the Heck Do I Use GitHub?.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
Lifehacker </>
* <#><#>
* <#>
o
+ CHackerspace <http://hackerspace.lifehacker.com>
+
+ Deadspin <http://deadspin.com>
+ Gawker <http://gawker.com>
+ Gizmodo <http://gizmodo.com>
+ io9 <http://io9.com>
+ Jalopnik <http://jalopnik.com>
+ Jezebel <http://jezebel.com>
+ Kotaku <http://kotaku.com>
+ Lifehacker <http://lifehacker.com>
* P <#>O <#>
* S </search>
*
S
Advanced
Include UnpublishedInclude Replies
Include only posts that have...
ImagesVideoMarked as Spam
* 51 <#>
* E <#>
* j
<http://www.facebook.com/sharer.php?u=http%3A%2F%2Flifehacker.com%2F5983680%2Fhow-the-heck-do-i-use-github>
* i
<http://twitter.com/share?url=http%3A%2F%2Flifehacker.com%2F5983680%2Fhow-the-heck-do-i-use-github&text=POST_TITLE>
*
G
o eEdit </posts/5983680/edit>
o BPromote <#>
o ABusiness <#>
*
Tips, tricks, and downloads for getting things done.
APP DIRECTORY
<http://lifehacker.com/the-lifehacker-app-directory-curates-the-best-apps-for-5803257>
- DOWNLOADS <http://lifehacker.com/tag/downloads> - PRODUCTIVITY
<http://lifehacker.com/tag/productivity> - DIY
<http://lifehacker.com/tag/diy> - MONEY
<http://lifehacker.com/tag/money> - SECURITY
<http://lifehacker.com/tag/security> - LIFEHACKER DEALS
<http://lifehacker.com/tag/dealhacker> - NIGHT SCHOOL
<http://lifehacker.com/tag/nightschool>
Lifehacker </>
Recommended by Adam Dachis <http://adachis.kinja.com/>
The Complete Guide to Solid-State Drives
<http://lifehacker.com/5932009/the-complete-guide-to-solid+state-drives/@adachis>
You May Be Able to Negotiate Your Medical Bill
<http://lifehacker.com/you-may-be-able-to-negotiate-your-medical-bill-1513310286/@adachis>
Stop Overthinking Your Life
<http://lifehacker.com/stop-overthinking-your-life-1513416172/@adachis>
What Are the General Guidelines for Ingredient
Substitutions?
<http://lifehacker.com/what-are-the-general-guidelines-for-ingredient-substitu-1513349006/@adachis>
Surprise.ly Shares Links to Clutter-Free YouTube Videos
<http://lifehacker.com/suprise-ly-shares-links-to-clutter-free-youtube-videos-1513284946/@adachis>
How We Work, 2014: Adam Dachis' Gear and Productivity Tricks
<http://lifehacker.com/how-we-work-adam-dachis-favorite-gear-and-productivit-1513902825/@adachis>
Make Your Own All-Natural Personal Lubricant
<http://afterhours.lifehacker.com/make-your-own-all-natural-personal-lubricant-1505394897/@adachis>
Welcome to Lifehacker, After Hours: Time to Turn On
Incognito Mode
<http://afterhours.lifehacker.com/its-like-youre-trying-to-tempt-me-to-post-nude-photos-i-1505599399/@adachis>
Gamify Your Exercise Routine This Weekend
<http://lifehacker.com/gamify-your-exercise-routine-this-weekend-1497538852/@adachis>
Make a Chocolate Cake in Five Minutes and Just One Bowl
<http://lifehacker.com/make-a-chocolate-cake-in-five-minutes-and-just-one-bowl-1497720258/@adachis>
Make a Toboggan Sled Out of Old Skis
<http://lifehacker.com/make-a-toboggan-sled-out-of-old-skis-1497497674/@adachis>
Intel NUC PCs Pack a Ton of Power into a Tiny Little Case
<http://lifehacker.com/intel-nuc-pcs-pack-a-ton-of-power-into-a-tiny-little-ca-1497489603/@adachis>
The DIY Snow Ripper Can Eliminate Snow From Your Roof in
Minutes
<http://lifehacker.com/the-diy-snow-ripper-can-eliminate-snow-from-your-roof-i-1497502004/@adachis>
Boomerang Adds Scheduled Message Management Directly in
Gmail
<http://lifehacker.com/boomerang-adds-scheduled-message-management-directly-in-1498170541/@adachis>
Photograph Your Suitcase Before Flying to Find It Fast If It
Gets Lost
<http://lifehacker.com/photograph-your-suitcase-before-flying-to-find-it-fast-1497478461/@adachis>
Cheap Alternatives to Expensive Creative Mac Software
<http://lifehacker.com/cheap-alternatives-to-expensive-creative-mac-software-1497726450/@adachis>
Put the Best Wallpapers of 2013 on Your Desktop
<http://lifehacker.com/put-the-best-wallpapers-of-2013-on-your-desktop-1496565196/@adachis>
Debit Cards vs. Credit Cards: Your Best Arguments
<http://lifehacker.com/debit-cards-vs-credit-cards-your-best-arguments-1496414950/@adachis>
Lay-N-Go Traveler Makes Finding Small Items in Your Bag
Super Easy
<http://lifehacker.com/lay-n-go-traveler-makes-finding-small-items-in-your-bag-1496408342/@adachis>
Make a Camera Crane Out of a Painter's Pole and Some Gears
<http://lifehacker.com/make-a-camera-crane-out-of-a-painters-pole-and-some-ge-1496400370/@adachis>
In 5 seconds, click here to continue reading... <#>
X <#>Please update your browser
<http://help.gawker.com/customer/portal/articles/1329926-is-my-browser-supported->
for a better experience on Lifehacker.
O<http://adachis.kinja.com>
Adam Dachis <http://adachis.kinja.com>on Lifehacker <http://lifehacker.com>
Ask Lifehacker </tag/ask-lifehacker>
* GitHub </tag/github>
* Teach Yourself </tag/teach-yourself>
* Learn to code </tag/learn-to-code>
* How To </tag/how-to>
* code </tag/code>
* Developers </tag/developers>
* Development </tag/development>
* Programming </tag/programming>
* Top </tag/top>
2/12/13 10:00am2/12/13 10:00am
<http://lifehacker.com/5983680/how-the-heck-do-i-use-github>
Edit </posts/5983680/edit>215,175g
51 <#>
118L <#replies>
E
* Share to Kinja <#>
*
* jFacebook
<http://www.facebook.com/sharer.php?u=http%3A%2F%2Flifehacker.com%2F5983680%2Fhow-the-heck-do-i-use-github>
* iTwitter
<http://twitter.com/share?url=http%3A%2F%2Flifehacker.com%2F5983680%2Fhow-the-heck-do-i-use-github&text=POST_TITLE>
* kTumblr
<http://www.tumblr.com/share/link?name=POST_TITLE&description=POST_DESCRIPTION&url=http%3A%2F%2Flifehacker.com%2F5983680%2Fhow-the-heck-do-i-use-github>
K <#>
How the Heck Do I Use GitHub?
<http://lifehacker.com/5983680/how-the-heck-do-i-use-github>
How the Heck Do I Use GitHub?SExpand
Related
<http://lifehacker.com/5744113/learn-to-code-the-full-beginners-guide>
Learn to Code: The Full Beginner's Guide
<http://lifehacker.com/5744113/learn-to-code-the-full-beginners-guide>
If you've been looking to learn how to code, we can help you get
started. Here are 4.5 lessons on the basics and extra resources to keep
you… Read…
<http://lifehacker.com/5744113/learn-to-code-the-full-beginners-guide>
Dear Lifehacker,
I've learned to code
<http://lifehacker.com/5744113/learn-to-code-the-full-beginners-guide>
and want to start using GitHub to manage my projects. Despite the
introductory lesson they provide, I still don't understand how it works
at all. Can you help me? P
Sincerely,
Git HelpP
Dear GH,
GitHub's a great tool but it's definitely a little confusing the first
time around (and, possibly, a few times after that). That's likely why
GitHub created software (for OS X <http://mac.github.com/> and Windows
<http://windows.github.com/>) to make the process a bit easier.
Nevertheless, it's good to learn the old-fashioned way otherwise your
options in the simplified software won't make sense. Let's start by
walking through the basics.P
------------------------------------------------------------------------
Step One: Sign Up for GitHubP
How the Heck Do I Use GitHub?SExpand
Here comes the easy part: make yourself a GitHub account signing up on
the front page <https://github.com/>. After completing the form, GitHub
will sign you in and take you to your empty news feed. In the middle of
the page, you'll see the boot camp (pictured to the right). We're going
to go through it to set up your account and, later, create your first
repository. Click on "Set Up Git" to get started.P
Step Two: Install GitP
How the Heck Do I Use GitHub?SExpand
GitHub exists because of a version control application called |git|. The
site is based around how git works, and git is pretty old. It runs via
the command line and has no fancy graphical user interface. Since it's
made to manage code /you/ wrote, this shouldn't sound too scary. (Of
course, as previously mentioned, GitHub did make wonderful software to
allow you to use their service without the command line but that won't
help you too much unless you know the basics.)P
Git works by reading a local code repository (just a folder containing
code for your project) on your computer and the mirroring that code
elsewhere (in this case, GitHub's servers). Initially we'll commit (i.e.
send) your entire local repository to GitHub, but that's just a one-time
affair. As you continue to work on your code, you'll simply commit
changes. GitHub will then keep track of the changes you made, creating
different versions of files so you can revert back to old ones if you
want (or just keep track of those changes for other reasons). This is
primarily why you'd want to use a version control system like git on
your own, but additional benefits surface when using git to manage code
with other people working on your project. When multiple developers
commit code with git, GitHub becomes a central repository where all the
code that everyone's working on can stay in sync. You'll commit your
changes, and other developers will pull them (i.e. sync them to their
local repository). You'll do the same with their code.P
Git makes this all happen, so you need to download the latest version
<http://git-scm.com/downloads> and install it. On OS X, you'll just
install the command line app. On Windows, you'll get a few more items.
We'll discuss how they work in the next step.P
Step Three: Set Up GitP
How the Heck Do I Use GitHub?SExpand
To set up git, you need to make your way into the command line. On OS X,
that means launching the Terminal app (Hard Drive -> Applications ->
Utilities -> Terminal) and on Windows that means launching the Git Bash
app you just installed—/not/ the Windows command prompt. When you're
ready, tell git your name like this:P
|git config —global user.name "Your Name Here"|P
For example, mine would look like this because I'm using a test account
for this example:P
|git config —global user.name "Adam Dachis"|P
You can put in any name you like, but afterwards you'll need to input
your email and that email /must/ be the email you used when signing up
for GitHub:P
|git config —global user.email "[email protected]"|P
If, for whatever reason, you signed up for GitHub with the wrong email
address, you'll need to change it
<https://help.github.com/articles/how-do-i-change-my-primary-email-address>.P
Now, to avoid always entering your login credentials and generating SSH
keys, you'll want to install the credential helper so your passwords are
cached. If you're on Windows, download it
<https://github.com/downloads/anurse/git-credential-winstore/git-credential-winstore.exe>
and install it. If you're on OS X, you'll need to handle this through
the Terminal. To start, use this command to download the credential helper:P
|curl -s -O \
http://github-media-downloads.s3.amazonaws.com/osx/git-credential-osxkeychain|P
This will download a tiny little file and shouldn't take too long. When
finished, enter the following command to make sure the permissions are
correct on the file you just download (and fix them if not):P
|chmod u+x git-credential-osxkeychain|P
Now it's time to install the credential helper into the same folder
where you install git. To do so, enter this command:P
|sudo mv git-credential-osxkeychain `dirname \`which git\``|P
You'll be prompted for your administrator password because the above
command began with sudo. Sudo is shorthand for "super user do" and is
necessary when performing a task that requires root access. The sudo
command allows you to become the root user (a user with permission to do
pretty much anything) on your operating system for a moment so you can
perform this task. You're asked to enter your password to prove you're
an administrator on the computer and should be allowed to do this. Once
you've entered your password and the credential helper has been moved,
finish up the installation with this command:P
|git config —global credential.helper osxkeychain|P
Now you're all set and can move on to actually using git and GitHub!P
Step Four: Create Your First RepositoryP
How the Heck Do I Use GitHub?SExpand
Now that you've made it this far, you can actually use GitHub! As a
first order of business, we're going to create a repository (or "repo"
for short). Head on over to GitHub and click the "New Repository" button
on the top right of your account page. (Note: If you're still displaying
the GitHub bootcamp section, it'll show up underneath it.)P
When creating a repository you have a few things to decide including
it's name and whether it'll be publicly accessible or not. Choosing a
name should be pretty simple because you likely already have a name for
your project. If you're just following along for learning purposes, use
"Hello-World." Why "Hello-World" and not "Hello World"? Because spaces
and special characters will cause problems. Keep it simple and easy to
type in the command line. If you want to include a more complex name,
you can add it to the optional description field beneath the name field.P
If you're creating an open-source project, you want a public repository.
If you want to code by yourself or share only with specific people, a
private repository will do. Make the choice that works best for you and
your project.P
When you're all done, you can click the "Create repository" button but
you might want to do one other thing first: check the "Initialize this
repository with a README" checkbox. Why? All repositories require a
README file. Ideally that file would contain a little information about
your project, but you might not want to deal with that right now. By
initializing the repository with a README, you'll get an empty README
file that you can just deal with later. For the purposes of this
tutorial, we're going to leave the box /unchecked/ because, in the next
section, we're going to create a README file from scratch to practice
committing (sending) it to GitHub.P
Step Five: Make Your First CommitP
How the Heck Do I Use GitHub?SExpand
When you send files to GitHub, you /commit/ them. To practice, we're
going to initialize your local repository and create a README file to
commit as practice. Before you start, you need to know where your local
code repository is on your computer and how to access it via the command
line. In this tutorial, we're going to assume there's a directory called
"Hello-World" in your computer's home folder. If you need to create one,
just run this command (same for Git Bash on Windows and OS X's terminal):P
|mkdir ~/Hello-World|P
Now change to that directory using the cd (change directory) command:P
|cd ~/Hello-World|P
In case you were wondering, the ~ represents your home directory in Git
Bash and Terminal. It's simply shorthand so you don't have to type it
all out (which would look more like /Users/yourusername/). Now that your
repository is ready, type this:P
|git init|P
If you already had a repository ready to go, you'd just need to cd to
that directory and then run the |git init| command in there instead.
Either way, your local repository is ready to go and you can start
committing code. But wait, you don't have anything to commit! Run this
command to create a README file:P
|touch README|P
Let's take a break for a second and see what just happened. Go into the
home folder on your computer and look at the Hello-World folder (or look
at whatever folder you're using for a local repository). You'll notice a
README file inside, thanks to the command you just ran. What you won't
see is a .git folder, but that's because it's invisible. Git hides it in
there, but because you ran the |git init| command you know it exists. If
you're skeptical, just run the |ls| command in Git Bash/Terminal to
display a list of everything in the current directory (which, if you're
following along, is your local repository).P
So how does git know we want to commit this README file we just created?
It doesn't, and you have to tell it. This command will do the trick:P
|git add README|P
If you want to add other files to commit, you'll use the same command
but replace README with the name of a different file. Now, run this
command to commit it:P
|git commit -m 'first commit'|P
While the other commands were pretty straightforward, the commit command
has a little more going on so let's break it down. When you type |git|,
that's just telling the command line that you want to use the git
program. When you type |commit|, you're telling git you want to use the
commit command. Everything that follows those two thing count as
options. The first, /-m/, is what's known as a flag. A flag specifies
that you want to do something special rather than just run the commit
command. In this case, the -m flag means "message" and what follows it
is your commit message (in the example, 'first commit'). The message
isn't absolutely necessary (although you'll usually need to provide
one), but simply a reference to help you differentiate the various
versions of a file (or files) you commit to your repository.P
Your first commit should go by in a split second because you haven't
actually uploaded anything yet. To get this empty README file to GitHub,
you need to push it with a couple of commands. Here's the first:P
|git remote add origin https://github.com/yourusername/Hello-World.git|P
You need to replace "yourusername" with—you guessed it—your GitHub
username. For me, it'd look like this:P
|git remote add origin https://github.com/gittest1040/Hello-World.git|P
This command tells git where to send your Hello-World repository. Now
all you need to do is send it:P
|git push origin master|P
Once you run that command, everything (in this case, just your README
file) will make it's way over to GitHub. Congratulations on your first
commit!P
Learning MoreP
Using GitHub requires more than just committing a README file, but these
basics should give you a good grasp on how to interact with the git app
and the service. Now that you know how GitHub works at its core, you can
use the GitHub apps to manage your code instead if you prefer. If you
want to learn more about GitHub, there are some great tutorials. For
starters, take a look at how to fork a repository
<https://help.github.com/articles/fork-a-repo> and LockerGnome's GitHub
guide
<http://www.lockergnome.com/web/2011/12/13/how-to-use-github-to-contribute-to-open-source-projects/>.P
Have fun managing your code!P
Love,
LifehackerP
/Have a question or suggestion for a future Ask Lifehacker? Send it to
[email protected] <mailto:[email protected]>./P
LDiscuss </posts/5983680/reply>
K
Show all discussions
1Author is participating@ <#>X <#>
David Mortensen <http://dmortensen.kinja.com>UAdam Dachis
XX
11
L </posts/465274151/reply>
U
* LShare to Kinja <#>
* eEdit </posts/465274151/edit>
You should probably include a bit about fetching and pulling and branching.
When I was learning git I can't tell you how many times I nuked my
latest changes b/c I pulled instead of fetching first. I know there is
documentation out there, but it's all over the place and really not very
clear for the beginner.
In fact it would be a huge help to just put out a tutorial on git
itself.2/12/13 10:15am
<http://lifehacker.com/you-should-probably-include-a-bit-about-fetching-and-pu-465274151>
Adam Dachis <http://adachis.kinja.com>UDavid Mortensen
XX
11
L </posts/465274156/reply>
U
* LShare to Kinja <#>
* eEdit </posts/465274156/edit>
This just got so long that I had to eventually stop. :) I would like to
get into additional information, but I think it's going to have to be
another post down the line. I just promised this one to somebody back in
December, so hopefully more in the future! We could probably do an
entire night school on this if there was enough interest.2/12/13 10:19am
<http://lifehacker.com/this-just-got-so-long-that-i-had-to-eventually-stop-465274156>
meladamei <http://meladamei.kinja.com>UDavid Mortensen
XX
1
L </posts/465274169/reply>
U
* LShare to Kinja <#>
* eEdit </posts/465274169/edit>
Weird, I've never fetched, only ever pushed/pulled and things have been
great for me... for like years. Never heard of that, I'll have to look
it up to see what I'm missing. :)2/12/13 10:35am
<http://lifehacker.com/weird-ive-never-fetched-only-ever-pushed-pulled-and-t-465274169>
footl and 4 others... <#>
XCollapse conversation <#>
22 participants@ <#>X <#>
Mr.Pwnface <http://stedel.kinja.com>UAdam Dachis
XX
1
L </posts/465274155/reply>
U
* LShare to Kinja <#>
* eEdit </posts/465274155/edit>
Forgive my ignorance, but how does Git/GitHub handle files with
passwords in it? Say I have a config file that has the
location/user/pass for my database, but also a ton of other important
information — how do I make it so the world doesn't see the
credentials?2/12/13 10:19am
<http://lifehacker.com/forgive-my-ignorance-but-how-does-git-github-handle-fi-465274155>
EchoVelocity <http://echovelocity.kinja.com>UMr.Pwnface
XX
1
L </posts/465274160/reply>
U
* LShare to Kinja <#>
* eEdit </posts/465274160/edit>
I can't imagine a scenario where this would be the case. You could
always add the config file to the .gitignore2/12/13 10:25am
<http://lifehacker.com/i-cant-imagine-a-scenario-where-this-would-be-the-case-465274160>
Veggieburger77 <http://veggieburger77.kinja.com>UMr.Pwnface
XX
1
L </posts/465274166/reply>
U
* LShare to Kinja <#>
* eEdit </posts/465274166/edit>
normally production or even testing environment passwords are kept by
admins and not included in source codes. You might want to remove the
credentials from the file before checking in. There maybe other
important configuration items in the file besides credentials so adding
the file to gitignore might not help.2/12/13 10:32am
<http://lifehacker.com/normally-production-or-even-testing-environment-passwor-465274166>
13matt and 18 others... <#>
XCollapse conversation <#>
5 participants@ <#>X <#>
schrodingersrap <http://schrodingersrap.kinja.com>UAdam Dachis
XX
1
L </posts/465274180/reply>
U
* LShare to Kinja <#>
* eEdit </posts/465274180/edit>
It's worth noting that Microsoft has actually added GitHub integration
into Visual Studio 2012. (not sure if they're doing it for 2010)
Yay open source!2/12/13 11:00am
<http://lifehacker.com/its-worth-noting-that-microsoft-has-actually-added-gith-465274180>
SirFuddlestonHuddleston
<http://sirfuddlestonhuddleston.kinja.com>Uschrodingersrap
XX
1
L </posts/465274208/reply>
U
* LShare to Kinja <#>
* eEdit </posts/465274208/edit>
Now if only they would get rid of Source Safe.2/12/13 11:26am
<http://lifehacker.com/now-if-only-they-would-get-rid-of-source-safe-465274208>
wakers01 <http://wakers01.kinja.com>USirFuddlestonHuddleston
XX
1
L </posts/465274257/reply>
U
* LShare to Kinja <#>
* eEdit </posts/465274257/edit>
People still use VSS?2/12/13 12:00pm
<http://lifehacker.com/people-still-use-vss-465274257>
wakers01 and 1 others... <#>
XCollapse conversation <#>
1Author is participating@ <#>X <#>
Blakstar26 <http://naeempinto.kinja.com>UAdam Dachis
XX
1
L </posts/465274150/reply>
U
* LShare to Kinja <#>
* eEdit </posts/465274150/edit>
A good reference for git commands - http://gitref.org2/12/13 10:14am
<http://lifehacker.com/a-good-reference-for-git-commands-http-gitref-org-465274150>
Adam Dachis <http://adachis.kinja.com>UBlakstar26
XX
1
L </posts/465274157/reply>
U
* LShare to Kinja <#>
* eEdit </posts/465274157/edit>
Thanks!2/12/13 10:19am <http://lifehacker.com/thanks-465274157>
psionski <http://psionski.kinja.com>UBlakstar26
XX
1
L </posts/465274351/reply>
U
* LShare to Kinja <#>
* eEdit </posts/465274351/edit>
Thank you!2/13/13 2:00am <http://lifehacker.com/thank-you-465274351>
XCollapse conversation <#>
14 participants@ <#>X <#>
martin06411 <http://martin06411.kinja.com>UAdam Dachis
XX
21
L </posts/465274186/reply>
U
* LShare to Kinja <#>
* eEdit </posts/465274186/edit>
Is it just me or does this strike anyone else as poorly designed
software? Certain tasks lend themselves to different user interfaces,
and this seems like something that is suited to a GUI configured
service. Login, point out to a folder, let it sync, have buttons to do
common functions, that's it. I see no benefit of this software using a
command line interface when I consider what it does.2/12/13 11:06am
<http://lifehacker.com/is-it-just-me-or-does-this-strike-anyone-else-as-poorly-465274186>
Noah Porter <http://jp182.kinja.com>Umartin06411
XX
1
L </posts/465274191/reply>
U
* LShare to Kinja <#>
* eEdit </posts/465274191/edit>
to be honest, neither do I or alot of people which is why there are GUI
based apps that can do the command line stuff for you. I GitHub for Mac
which is great for a beginner. There are similar programs for Windows as
well but they were not as intuitive as GitHub for Mac. It IS one of
those things that become easier to get your head around once you've done
most of the steps in the process a few times.
So after using GitHub for Mac; I have a better understanding of how this
process works even if I don't think it's the most efficient way to do
this. I'm suffering through multiple branch issues right now; issues
that I thought Git was supposed to solve in the first place.2/12/13
11:14am
<http://lifehacker.com/to-be-honest-neither-do-i-or-alot-of-people-which-is-w-465274191>
dr_tran <http://dr_tran.kinja.com>Umartin06411
XX
1
L </posts/465274214/reply>
U
* LShare to Kinja <#>
* eEdit </posts/465274214/edit>
My impression of most source control packages is this: software for
programmers, written by programmers, designed by programmers. They're
designed to be automated through scripts or hacked at manually for
finely-grained control of how the code gets committed, pushed, and
synced. GUIs are for the "noobs" or exist solely to facilitate common
usage scenarios (so long as the command-line backend is there
hamstringing the GUI so that they can still get in there and hack at it
manually).
Personally, I think that a Dropbox-like program targeted towards
programmers that prioritized the GUI but still had many of the features
common to source control packages would do well. There are a lot of
programmers working on smaller-scale projects or in smaller teams who
don't need the finely-grained control that command-line-based source
control packages provide and would rather just be able to click a button
and commit their changes (and maybe resolve a conflict or two).
Dynamically updating to show the state of the remote repository (giving
a visual indication as to whether or not there are changesets you need
to pull) would be the cherry on top.2/12/13 11:32am
<http://lifehacker.com/my-impression-of-most-source-control-packages-is-this-465274214>
masterOfTheUniverse9870 and 10 others... <#>
XCollapse conversation <#>
1 participant@ <#>X <#>
ducheznee <http://ducheznee.kinja.com>UAdam Dachis
XX
1
L </posts/465274315/reply>
U
* LShare to Kinja <#>
* eEdit </posts/465274315/edit>
I don't get it. Should I care about this at all if I'm not a
programmer?2/12/13 2:39pm
<http://lifehacker.com/i-dont-get-it-should-i-care-about-this-at-all-if-im-no-465274315>
TheLaughinKipper <http://thelaughinkipper.kinja.com>Uducheznee
XX
1
L </posts/465274394/reply>
U
* LShare to Kinja <#>
* eEdit </posts/465274394/edit>
Although it's mostly oriented toward programming you can use it with
pretty much any kind of project. Last year, for example, I used it to
keep the succesive versions of a piece of music I was composing. It
saved my ass at least once.
If nothing else, you can think of it as a kind of a rather sophisticated
backup mechanism. Then there are the collaboration tools, with which I
don't have much experience and that this article -quite understandably-
does not cover.2/15/13 6:50pm
<http://lifehacker.com/although-its-mostly-oriented-toward-programming-you-can-465274394>
XCollapse conversation <#>
@ <#>X <#>
Veggieburger77 <http://veggieburger77.kinja.com>UAdam Dachis
XX
1
L </posts/465274162/reply>
U
* LShare to Kinja <#>
* eEdit </posts/465274162/edit>
Github is a Git Remote repository hosted on the cloud. To understand
Github better, you need to know the basics of Git, concepts of Software
Configuration Management (SCM) and how Git differs from other SCM
systems like SVN etc. It is important to know that Git is a distributed
SCM which means that it will maintain an entire copy of the repository
on your local machine and this enables you to work on the software
totally disconnected from the remote repository. There is a free book
http://git-scm.com/book (even PDF floating somewhere). Good to get a
grip on Git first.2/12/13 10:28am
<http://lifehacker.com/github-is-a-git-remote-repository-hosted-on-the-cloud-465274162>
XCollapse conversation <#>
3 participants@ <#>X <#>
Noah Porter <http://jp182.kinja.com>UAdam Dachis
XX
1
L </posts/465274195/reply>
U
* LShare to Kinja <#>
* eEdit </posts/465274195/edit>
I highly recommend Github for Mac:
http://mac.github.com/
It's not perfect but I have a better understanding of repos and branches
after using it for a week in my 9-5 job.2/12/13 11:17am
<http://lifehacker.com/i-highly-recommend-github-for-mac-http-mac-github-co-465274195>
bacavoit <http://bacavoit.kinja.com>UNoah Porter
XX
1
L </posts/465274203/reply>
U
* LShare to Kinja <#>
* eEdit </posts/465274203/edit>
As I said in the main reply, I used Github to help translate TotalFinder
into Spanish but I really had a hard time working with the OSX version,
I ended up using the web one.2/12/13 11:21am
<http://lifehacker.com/as-i-said-in-the-main-reply-i-used-github-to-help-tran-465274203>
vpnplease <http://vpnplease.kinja.com>UNoah Porter
XX
1
L </posts/465274307/reply>
U
* LShare to Kinja <#>
* eEdit </posts/465274307/edit>
I highly recommend using homebrew to install git, instead of the
standalone installer or the GUI client, if you are on OSX.2/12/13 1:14pm
<http://lifehacker.com/i-highly-recommend-using-homebrew-to-install-git-inste-465274307>
Noah Porter<#>
XCollapse conversation <#>
1 participant@ <#>X <#>
13matt <http://13matt.kinja.com>UAdam Dachis
XX
11
L </posts/465274165/reply>
U
* LShare to Kinja <#>
* eEdit </posts/465274165/edit>
2005 is old?2/12/13 10:32am <http://lifehacker.com/2005-is-old-465274165>
ament001 <http://ament001.kinja.com>U13matt
XX
1
L </posts/465274189/reply>
U
* LShare to Kinja <#>
* eEdit </posts/465274189/edit>
The year is 2013. Yes, 8 years make it old. This is a piece of software
not a child we are talking about.2/12/13 11:10am
<http://lifehacker.com/the-year-is-2013-yes-8-years-make-it-old-this-is-a-p-465274189>
XCollapse conversation <#>
@ <#>X <#>
bacavoit <http://bacavoit.kinja.com>UAdam Dachis
XX
1
L </posts/465274197/reply>
U
* LShare to Kinja <#>
* eEdit </posts/465274197/edit>
I used Github to help translate TotalFinder into Spanish but I really
had a hard time working with the OSX version, I ended up using the web
one.2/12/13 11:21am
<http://lifehacker.com/i-used-github-to-help-translate-totalfinder-into-spanis-465274197>
XCollapse conversation <#>
12 additional replies submitted and awaiting review
Submitted discussions can be approved by the author or users followed by
this blog.
* About <http://lifehacker.kinja.com/5732066/about-lifehacker>
* Help <http://help.gawker.com/>
* Terms of Use <http://legal.kinja.com/kinja-terms-of-use-90161644>
* Privacy <http://legal.kinja.com/privacy-policy-90190742>
* Advertising <http://advertising.gawker.com/>
* Permissions <http://advertising.gawker.com/about/index.php#contact>
* Content Guidelines <http://legal.kinja.com/content-guidelines-90185358>
* RSS <http://feeds.gawker.com/lifehacker/full>
* Jobs <http://grnh.se/2ctqpi>
Follow Lifehacker