Answer the question
In order to leave comments, you need to log in
Where can I watch a video on using Git?
Can anyone recommend a video that explains the steps of using git with a real example.
Something like
- We have just created the skeleton of our site, we need to fix the result. We do git init. Now you need to do git add *. Now we commit git commit -m "first". We edit files. Oh no, mistake, you need to go back, for this we press this command ..... and so on.
I have read several articles about git and the first chapter in ProGit. It is clear why it is needed, what commands there are, but the process of using it is not very good. What files should not be committed? When to upload to the server? Every time or can be at the end of the work day. Why keep two or three branches.
I'm looking for examples of use on a real (well, or test) project.
Answer the question
In order to leave comments, you need to log in
There are translated courses from lynda.com about git - if you need it in Russian
rutracker.org/forum/viewtopic.php?t=4782388
But
it's better to watch
rutracker.org/forum/viewtopic.php?t=4178341
in the original I didn't and I wasn't here at all.
Try this interactive tutorial, better than
pcottle.github.io/learnGitBranching video in my opinion
Don't commit images or configuration files that differ from machine to machine (eg database config) because GIT is team oriented.
You can commit as often as you like. Maybe once a week. But it's better to commit when adding a feature or fixing a bug - then by the names you can find the necessary commit, look at its changes and understand how it works.
Several branches are usually kept for experimentation - for example, the master branch, this is the one that is laid out in production, then the branch for adding some kind of feature, etc.
Here is a pretty good video for those who already understand git and for those who are new https://www.youtube.com/watch?v=1ffBJ4sVUb4
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question