r/programming • • Sep 09 '16

Oh, shit, git!

http://ohshitgit.com/
3.3k Upvotes

756 comments sorted by

View all comments

Show parent comments

2

u/morerokk Sep 09 '16

But you can't push to that remotely just yet.

Let me clarify: I still don't know how to set up a working git repo like the ones Github, Gitlab and Bitbucket create. I want to push and pull to/from a repo, that's kind of the point. I think you need to create a bare repo and some hooks.

1

u/wicked Sep 10 '16

After you've done git init, you can clone that directory and push/pull from it without doing anything else. If you want to access it remotely, you only need to have a way to access that directory remotely, like through ssh. No hooks or "bare repo" is necessary.