Answer the question
In order to leave comments, you need to log in
Do I understand correctly how to use Git in the development team?
I'm afraid to mess something up, that's why I'm clarifying. For example, I already have everything installed, I wrote to myself - git init
- registered global config user.email and user.name
- then git remote add origin ssh://[email protected]/var/git/example.git
- after which I can do git clone ssh://[email protected]/var/git/repository-name
- then I go to the folder of this repository, change files, etc., after that I write
- git-commit -a - m "new commit"
- and I send a git push to the server (specifying the repository and branch)
- To get the updated files, I need git pull
I have questions:
1) When indexing a file, should I index only those that I changed? Because maybe someone else has already made changes there, made a push and it turns out that I will overwrite his changes with my push?
2) If I am a new member of the development team, how will my connection to the team still take place, will they give me a login and password for the project, give me read and write permissions, and then everything is as usual?
3) I am a layout designer, the first day of work is coming soon, they said the workplace will be prepared, as I understand it, that the main things will be configured or is it still not? (Yes, I know, I should have asked right away, stupid)
4) And yet, after git pull, do I need to do git commit?
Thank you all for any replies and advice.
Answer the question
In order to leave comments, you need to log in
1. They won't mess up, there will be a conflict either when pushing or pulling (pull before push is a good idea, as for me). Then either git will merge these changes itself, or it will require you to do it manually. In any case, it’s impossible to overwrite something just like that (otherwise, what would be the point in git at all?).
2. Exactly.
3. And this already depends on the employer. They can limit themselves to an account in the domain, and then, like, set up a workplace for yourself according to your needs.
In large offices there is such a position as "Assembly Manager". Usually, all the rules for working with the repository and the nuances of working with GIT are specified through it.
Must read: https://githowto.com
In normal offices, developers work in different branches and do not interfere with each other.
And the process of merging branches is one of the most boring jobs for more experienced developers.
Because maybe someone else has already made changes there, made a push and it turns out that I will overwrite his changes with my push?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question