If what you're doing has a lot of examples online? It'll likely lead you the right direction, maybe even directly solve your problem.
If you're doing anything more complex, don't expect anything other than correct-sounding but very wrong gibberish. It's not "smart", it has no capacity for facts or truth, and cannot actually solve a problem, it's a word generator. If you use it as such and understand its limitations it can be a valuable tool, but do not depend on it, and do not trust it.
GitHub leaving git? What would they do, force you to use some other version control system of their own invention? It's just a weird techbro push for "more AI", their version control stuff is not likely to change much.