D
D
Demigodd2019-10-28 09:12:22
git
Demigodd, 2019-10-28 09:12:22

How to group changed files in git?

I have files in the project that are changed but they do not need to be pushed, and when git status is displayed, all the changed files are visible, and somehow it has already become confusing, sometimes I think that I can make a mistake and commit all these files ..
Is there a method for example group all changes made in git ?
For example create 2 groups.
1) NO PUSH: There will be files that don't need to be pushed to github.
2) Other: All other files ..
This is how I see the solution to this problem, if there are better options, please share.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Decadal, 2019-10-28
@Demigodd

If gitignore does not suit you for this purpose, then you are doing something wrong.
Notes in the code either end up in the git or are not needed at all. For notes for yourself, you can use the IDE tools, there seems to be an opportunity to leave notes not in the main code file.
If you need to test a package, test it without committing it and then rollback or add it under git.
There is no other way - imagine that the file in which you made changes that were not added under git was changed by another developer and this data came during the pull. What will happen in this case? Git will say "you have some changes uncommitted, commit them or rollback, otherwise you won't be able to pool".

T
tuwkan, 2019-10-28
@tuwkan

Use gitignore

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question