1

I am developing some software in college and me and my partner are spliting the work and he sends me the code in raw and I commit it, but I want to commit his code in my NetBeans 11.0 on his name but i can only commit on mine and i want to be able to do it. Is it possible?

I already added 2 [user] camps to .git/config file in the repository but only i appear on the commit section on NetBeans CSV camp.

Here is a quick image of what I am referring to:

Please click here to see the screenshot

John Kugelman
  • 349,597
  • 67
  • 533
  • 578
  • Why are you using this mode instead of both working with the git directly? That's what git is for. – RealSkeptic Apr 30 '19 at 11:33
  • I Am sorry I did not understan what you said. My partner is not used to git bash and hit interfaces and he asks me to do the commits. Plus he works on random computer because he doesn't run a laptop ao he makes the code on the go... – Rafael Moreira Apr 30 '19 at 12:25

1 Answers1

2

The normal NetBeans "Git commit" dialog does have Author and Committer drop-down lists, that allow to differentiate between those who made the change and who physically committed the file if necessary.

NetBeans Git commit

As shown by bug 239587, you should be able to type directly the username <email@com> of the author (even though you can keep your default Git config user.name/email for the committer field)

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250