K
K
klinnov2017-02-03 14:12:27
git
klinnov, 2017-02-03 14:12:27

What is the right way to deal with git in this situation?

Hello!
Let's simulate the following situation:
I work in a large team. We use git. Each feature or fix is ​​a separate branch. But for example, I have grunt and when generating it, it throws out files that are not needed in "Changes not staged for commit" and "Untracked files" that should not go to the commit.
That is, I myself comical those that I need only.
And the rest I just do this:

git checkout -- .
git clean -d -f

to make a new branch from the master and continue to work on a clean branch.
Am I doing the right thing? Thank you!
UPD: I can't add them to ignore! There are a lot of them and they are sometimes needed in a committee!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
mvsavkin, 2017-02-03
@mvsavkin

.gitignore

A
aol-nnov, 2017-02-03
@aol-nnov

for all occasions !

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question