A
A
Alexey2020-11-24 10:31:40
git
Alexey, 2020-11-24 10:31:40

How to organize work on your project through git?

Hello!

I work on my project alone, in the old fashioned way .. local version on my computer, upload via ftp, backup is made there daily, I upload it periodically to the computer, the cycle turns out like this))

I would like to add git, I read a similar topic: How to organize work with GIT for one person?

Questions arose
, what is the best option for working on a project alone? So far I'm thinking this way:

1) The main version is on github, from there a bullet before work and push after the completion of part of the code (although if I work alone, I can only push?) Probably creating branches is also unnecessary?
2) Now the question is how to update the version on the server. In the topic that I indicated above, there is such an option:

give up ftp and deal with a normal deployment tool, for example capistrano (by the way, it uploads the code via git)


What do you think, what other option is better? It’s just that on the one hand I would like to do it correctly, on the other hand, I also think that unnecessary gestures are useless)

Thank you!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
res2001, 2020-11-24
@res2001

Through github is a normal option. You can also give remote access to git on your computer, if everything is fine with your hands and there are appropriate conditions.
Branches - optional, but it's easier with them, even when you work alone. There is no reason to limit yourself. Branches in the git do not take up space, you can create for each sneeze and also delete when they are not needed.
On the server - the same way, pick up via git. You can use git itself or any tool that uses git that you like best.

A
Alexey, 2020-11-27
@Allexio

Thank you very much for your reply, sorry for not posting sooner

To the server - the same way, pick up via git

Do you mean on a production server? I didn’t understand too much about “pick up”, it seems like you need to upload it there)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question