Lawmakers from both chambers of Congress are trying to block President Trump’s trans military ban — and there’s an Army general in California who reportedly plans to ignore it.

“As long as you fight, we don’t care what gender you identify as,” said Maj. Gen. Matthew Beevers, of the California National Guard, during an event for the Assembly Veterans Affairs Committee on Tuesday.

“Nobody’s going to kick you out,” he insisted, according to the Sacramento Bee.

Beevers, one of the highest-ranking officers in the California guard, told committee members and lawmakers in attendance that he believed “the ban [on transgender troops] will be lifted again” despite the president’s efforts.

Trump reversed an Obama-era ruling in 2017 allowing trans troops to serve openly — and the Supreme Court wound up approving the proposed restrictions last month while the lower courts continue to weigh the policy.

A bipartisan group of lawmakers, which included Sen. Kirsten Gillibrand, introduced legislation this week that would prohibit the Defense Department from turning away or discharging transgender recruits and troops.

“President Trump’s ban on transgender service members is discrimination, it undermines our military readiness, and it is an insult to the brave and patriotic transgender Americans who choose to serve in our military,” said Gillibrand, a member of the Senate Armed Services Committee, in a statement Thursday.

“The heads of the Army, Navy, Air Force, Marine Corps, and Coast Guard have all testified to Congress that transgender service members are serving in our military without any problems,” Gillibrand added. “We should end this discriminatory ban for good and ensure our transgender service members can continue to do their jobs, serve with dignity, and protect our country. That’s what our legislation would do, and I urge my colleagues in Congress to fight with me to overturn the President’s cruel and unnecessary ban, respect the transgender troops who are willing to die for our country, and pass this bipartisan bill now.”

There are nearly 14,000 transgender service members currently serving in the military, according to the LGBTQ magazine The Advocate.

Those who have been diagnosed with “gender dysphoria” are expected to be exempt from Trump’s ban — and will get to keep serving — should it go into effect, the magazine says.

Active members who have made medical transitions at least three years before enlisting or those who have no plans to transition while in service will not likely be impacted, either.

Aaron Belkin — director of the California-based LGBTQ think-tank, the Palm Center — told the Advocate that only 937 service members currently meet these requirements.

“There are thousands of transgender Americans serving in our Armed Forces today with courage, honor, and distinction,” explained Rhode Island Sen. Jack Reed, a former Army Ranger and the Ranking Member of the Armed Services Committee. “Our troops defend the rights and freedoms of all Americans. We must not allow bigotry to impede our military’s critical mission.”