I have a local master which is synced with a remote. I create feature branches out of it. Lets say I'm working on feature/a and some other dev is working on feature/b. This is my workflow for syncing with master:
//Sync master with upstream and get branch b
>master
- git pull upstream master
- git push origin master
//Return to branch a and get latest code from master
>feature/a
- git merge master
- resolve conflicts manually.
At this stage, if I do a git status I see a lot of files staged for commit. Most of them are not added by me, but by the other dev. I do not want to commit these files as I have not changed them. How would I do that? I want to commit a whole lot of files for just a few files that I have changed. Is there a better way to do this?
instead of doing a
You will have to do a
So that you wont have to worry about committng the files which other users have changed. I hope this helps.