As I was in the same shoes few (10. Oh my…) years ago, let me elaborate on
these things a bit.
On Thu, Sep 22, 2016, 22:39 Magnus Therning <mag...@therning.org> wrote:
> Charlie H <charding...@gmail.com> writes:
> > Hi all,
> > I'm extremely new to GIT, but I know it will help increase my
> > efficiency when working with my brother for our website together. I've
> > read a few start docs, but I have some general questions about the
> > best way to set it up.
> > Normally when I edit files (HTML/PHP) I have them automatically post
> > to our server as I work, if we use GIT what is the best way to post
> > the changes we make?
> What git does best is version control, I suggest you get some other tool
> for deploying your work to your site.
I said this many time before: git is not a deployment tool, but a version
control system. If you have minimal requirements, like if all you need is
copying your files to the web server, then Git can help you. Simply clone
the repository on the web server, and when you have a new release, just do
a git pull. This way you can share the work with your brother, but you
don't have to publish experimental stuff until you agree it is done.
However, if you do so, don't forget to deny access to the .git directory.
It shouldn't hold any delicate/sensitive information other than the address
of your central repo, but you should stay on the safe side.
There are more advanced stuff out there like (my personal favourite)
git-deploy, but it involves a lot of planning before you can use it.
> > Is there a specific way I should set it up specifically for this web
> > based files?
> Nope, nothing special should be needed on the git side.
> > Are the files saved on my drive or on the internet?
> All files are saved in your local workspace, i.e. (most likely) on your
…well, until you publish it by any means. Like creating a central(ish)
repository on GitHub/Gitlab/your web server/etc. Or maybe sending a bunch
of commits to your brother using git format-patch or git bundle.
> Magnus Therning OpenPGP: 0x927912051716CE39
> email: mag...@therning.org jabber: mag...@therning.org
> twitter: magthe http://therning.org/magnus
> LeBlanc's law: Later equals never.
> You received this message because you are subscribed to the Google Groups
> "Git for human beings" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to git-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/d/optout.