Akuli / git-guide

A practical guide to using git with github that hopefully doesn't suck.
https://akuli.github.io/git-guide/
MIT License
7 stars 1 forks source link

basic features #1

Open Akuli opened 3 years ago

Akuli commented 3 years ago

Setup etc:

Basics:

Looking at wtf is going on:

Working with other people:

Pull requests:

Things that the top stackoverflow answer gets wrong:

Akuli commented 3 years ago

@PurpleMyst I'd be interested in what you think about this plan.

PurpleMyst commented 3 years ago

I like it, but I'm not sure why git init is bad? I use it

Akuli commented 3 years ago

If you use git init with a github repo, you will also need to know how to git remote add origin https://github.com/username/repo and then tell git pull to merge the unrelated histories. It's not terribly complicated, but it's certainly more work than a single git clone command.

PurpleMyst commented 3 years ago

Makes sense. Usually, when I've git init-ed a repo locally, I make the repo remote on GitHub be empty and make any licenses/gitignores manually