M
M
mbhusty2018-12-14 17:56:02
git
mbhusty, 2018-12-14 17:56:02

How to properly implement git?

Greetings!
The situation is the following. I work in a small web studio, and I would like to implement git into the process, but I can not figure out how to organize everything correctly.
Now everything is so, the sites are on our own server, we edit the necessary files via SFTP and immediately all this is displayed on the combat version.
To begin with, I created a private repository in bitbucket, the project files are uploaded there. How to proceed?)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Ivan Feofanov, 2018-12-14
@Papazian

It is not necessary to implement git, but processes, git is about something else. If you are not aware of the processes, you can safely start with https://danielkummer.github.io/git-flow-cheatsheet...

P
Pavel, 2018-12-14
@PavelMonro

From the bouquet, create a repository locally, make changes to yourself and push it to the bouquet or wherever you need it, or create test subdomains and push there, check, push to the working site, in fact, git does not make sense for small projects, it it makes sense only when more than one person works and the project is constantly being finalized with a lot of code, functions. And for ordinary studios, it’s enough to make a backup and do whatever you want, at least on production, at least somewhere)) Having implemented, complicate your life only with simple projects

K
karasique, 2018-12-14
@karasique

What exactly are the problems? Make repositories for projects, test on local or dev server. Commit your achievements.
When you want to go into production, you make a separate branch, clean it up (for small projects, with a minimum of automation) and somehow upload / synchronize with the production server.
In order to upload files via ftp (if you do not have ide or it does not support synchronization via sftp), you can use, for example, Buddy .
If you have more specific questions - ask in the comments or complete the question :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question